frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: AgentShield SDK – Runtime security for agentic AI applications

https://pypi.org/project/agentshield-sdk/
2•iamsanjayk•11mo ago
Hi HN,

We built AgentShield, a Python SDK and CLI to add a security checkpoint for AI agents before they perform potentially risky actions like external API calls or executing generated code.

Problem: Agents calling arbitrary URLs or running unchecked code can lead to data leaks, SSRF, system damage, etc.

Solution: AgentShield intercepts these actions:

- guarded_get(url=...): Checks URL against policies (block internal IPs, HTTP, etc.) before making the request.

- safe_execute(code_snippet=...): Checks code for risky patterns (os import, eval, file access, etc.) before execution.

It works via a simple API call to evaluate the action against configurable security policies. It includes default policies for common risks.

Get Started:

Install: pip install agentshield-sdk

Get API Key (CLI): agentshield keys create

Use in Python: from agentshield_sdk import AgentShield # shield = AgentShield(api_key=...) # await shield.guarded_get(url=...) # await shield.safe_execute(code_snippet=...)

Full details, documentation, and the complete README are at <https://pypi.org/project/agentshield-sdk/>

We built this because securing agent interactions felt crucial as they become more capable. It's still early days, and we'd love to get your feedback on the approach, usability, and policies.

Comments

subhampramanik•11mo ago
Looks interesting -- Does it work like a wrapper on top of OpenAI specs? Like, can we just replace the OpenAI package with this, and it's fully integrated?
iamsanjayk•11mo ago
Hey, thanks for asking! Good question.

AgentShield isn't a wrapper around the OpenAI package, so you wouldn't replace openai with it. Think of AgentShield as a separate safety check you call just before your agent actually tries to run a specific risky action.

So, you'd still use the openai library as normal to get your response (like a URL to call or code to run). Then, before you actually use httpx/requests to call that URL, or exec() to run the code, you'd quickly check it with shield.guarded_get(the_url) or shield.safe_execute(the_code).

Currently, It focuses on securing the action itself (the URL, the code snippet) rather than wrapping the LLM call that generated it.

OWASP PTK 9.8.0 with auto-discovery for bug bounty

1•DenisPodgurskii•1m ago•0 comments

Entirety of Wikinews to be shut down

https://en.wikipedia.org/wiki/Wikipedia:Wikipedia_Signpost/2026-03-31/News_and_notes
1•CamelCaseCondo•1m ago•0 comments

Court of appeal says it cannot rule on which identical twin fathered a child

https://www.theguardian.com/society/2026/mar/30/court-of-appeal-says-it-cannot-rule-on-which-iden...
1•YeGoblynQueenne•3m ago•0 comments

Why chatbot therapists can't offer what we need

https://psyche.co/ideas/why-chatbot-therapists-cant-offer-what-we-need
1•herbertl•3m ago•0 comments

Breaking the Warranty with Go:Linkname

https://mcyoung.xyz/2026/03/31/shame/
1•ingve•4m ago•0 comments

Just redesigned my personal site with a TTY-style interface

https://abdisa.dev
1•abdisaDev•5m ago•1 comments

Building Limberly, Part 1: We're Not Moving Enough

https://prodzen.dev/articles/building-limberly-part-1-we-re-not-moving-enough/
1•frail_figure•11m ago•1 comments

Show HN: My own moonshot GIS newclear energy infrastructure

https://wes-core-grid.base44.app
1•wesley-Alan•15m ago•0 comments

Ask HN: What do you use for local embeddings?

1•asim•15m ago•0 comments

Built a desktop customization app – TRY IT

https://overlayos.veinpal.com/download
1•yosrbn•16m ago•1 comments

Show HN: DreamGraph – An autonomous cognitive layer for software systems

https://github.com/mmethodz/dreamgraph
2•mmethodz•16m ago•0 comments

7,655 Ransomware Claims in One Year: Group, Sector, and Country Breakdown

https://ciphercue.com/blog/7655-ransomware-claims-march-2025-to-march-2026
2•adulion•16m ago•0 comments

Claude Code Source Code Leaked (2026-03-31)

https://github.com/instructkr/claude-code
3•0xkato•17m ago•0 comments

Palantir's UK boss criticises 'ideological' groups as ... scrap NHS contract

https://www.theguardian.com/technology/2026/mar/31/palantir-uk-boss-louis-mosley-ministers-nhs-co...
1•chrisjj•17m ago•2 comments

What machine readable wishes could do for your social death? [video]

https://cubicgarden.com/2026/03/10/what-machine-readable-wishes-could-do-for-your-social-death/
1•adrianhoward•19m ago•0 comments

Building Political Superintelligence

https://freesystems.substack.com/p/building-political-superintelligence
2•m-hodges•21m ago•0 comments

Micropackages and Open Source Trust Scaling

https://lucumr.pocoo.org/2016/3/24/open-source-trust-scaling/
2•the_mitsuhiko•22m ago•1 comments

Show HN: HCaptcha Reverse Engineered

https://github.com/ak3zaidan/hCAPTCHA-Solver
3•ishqdehlvi•22m ago•1 comments

Italy Denies US Aircraft Access to Military Base

https://www.bloomberg.com/news/articles/2026-03-31/italy-denies-us-aircraft-access-to-military-ba...
2•vrganj•25m ago•1 comments

Ask HN: Dean of studies at a French CS school – what should we teach?

5•fdeage•27m ago•2 comments

Show HN: Livestream Robot Cooking

https://huggingface.co/spaces/haixuantao/openarm
1•HaixuanTao•30m ago•1 comments

Let the Commits Tell the Story

https://chrismaiorana.com/git-commits-tell-the-story/
1•swq115•36m ago•0 comments

Axios NPM Package Compromised: Supply Chain Attack Delivers Cross-Platform Rat

https://snyk.io/blog/axios-npm-package-compromised-supply-chain-attack-delivers-cross-platform/
2•jruohonen•38m ago•1 comments

Claude Code full source code leaked on NPM

https://github.com/chatgptprojects/claude-code
42•dheerajmp•39m ago•2 comments

Damn Claude, that's a lot of commits

https://aifoc.us/damn-claude-thats-a-lot-of-commits/
2•twapi•39m ago•0 comments

Another Starlink satellite has inexplicably exploded

https://www.theverge.com/science/903906/another-starlink-satellite-has-inexplicably-exploded
3•ColinWright•40m ago•0 comments

Super technical engineers and managers suck at explaining their thoughts

https://newsletter.manager.dev/p/explaining-understanding-and-data-compression
2•AntonZ234•41m ago•0 comments

Orca – Executable skills and capabilities for AI agent workflows

https://github.com/gfernandf/agent-skills
3•gfernandf•44m ago•0 comments

I built 5 AI agents that scrape every platform 24/7 to find dev tools you'd miss

https://claudecodetools.dev
4•Rredlegit•46m ago•0 comments

Playing in the Mac App Sandbox

https://troz.net/post/2026/playing_mac_sandbox/
2•ingve•47m ago•0 comments