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•1y 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•1y 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•1y 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.

UK explores space station mission for astronaut with physical disability

https://spacenews.com/uk-explores-vast-space-station-mission-for-astronaut-with-physical-disability/
1•bookmtn•33s ago•0 comments

Microsoft's MAI-Code-1-Flash Scores 51% SWE-Bench Pro with Just 5B Active Params

https://microsoft.ai/models/mai-code-1-flash/
1•EvanZhouDev•54s ago•0 comments

First commercial space station to launch early 2027

https://www.vastspace.com/haven-1
1•bookmtn•1m ago•0 comments

The Golden Age of Asking Questions

https://www.dropbox.com/scl/fi/mexrg6033i8y3ceqvz77r/golden-age-of-asking-questions.pdf?dl=0&nosc...
1•marojejian•1m ago•0 comments

MAI-Thinking-1 [pdf]

https://microsoft.ai/wp-content/uploads/2026/06/main_20260602_2.pdf
1•topsycatt•4m ago•0 comments

Only 54% of miles traveled by Waymos in California have a passenger onboard

https://findingspress.org/article/161870-millions-of-trips-waymo-empty-miles-california-s-first-t...
2•afavour•5m ago•0 comments

What happens when AI starts selling to AI?

https://www.computerworld.com/video/4180043/what-happens-when-ai-starts-selling-to-ai.html
1•speckx•5m ago•0 comments

1979: Will word processors start a revolution? – BBC Archive

https://www.youtube.com/watch?v=b6URa-PTqfA
1•asar•6m ago•0 comments

The HN shadowbanning situation is insane

1•shadowbanned_hn•8m ago•1 comments

MAI-Thinking-1

https://microsoft.ai/news/introducing-mai-thinking-1/
1•LER0ever•8m ago•1 comments

Show HN: Claude wrote FROG and now I don't know what to do with it

https://github.com/kmcnally5/FROG
1•froglang•8m ago•0 comments

Need a little help from everyone here

1•shashubansal247•10m ago•0 comments

SpaceX valued at just $780B by Morningstar

https://finance.yahoo.com/markets/article/spacex-valued-at-just-780-billion-by-morningstar-less-t...
1•m-hodges•10m ago•0 comments

European Parliament ditches Google for French search firm over privacy concerns

https://www.politico.eu/article/european-parliament-ditches-google-for-french-search-engine/
3•speckx•10m ago•0 comments

OpenAI models GPT-5.5 and GPT-5.4–and Codex–now on Amazon Bedrock

https://www.aboutamazon.com/news/aws/bedrock-openai-models
1•jaredwiener•11m ago•0 comments

People met in hotel lobbies (2017)

https://jasonlefkowitz.net/2017/05/people-met-in-hotel-lobbies/
3•downbad_•12m ago•0 comments

Roll your own Claude in 100 lines

https://github.com/yujqiao/100cc
1•rapiz•12m ago•0 comments

Cutting a photon in two creates an infinite swarm of particles

https://phys.org/news/2026-06-photon-infinite-swarm-particles.html
1•HardwareLust•13m ago•1 comments

Plainform

https://plainform.dev
1•eradon•14m ago•0 comments

The Painful Truth About Long Covid

https://www.wired.com/story/the-painful-truth-about-long-covid/
2•littlexsparkee•15m ago•1 comments

What Efforts to Cancel Richard Stallman Ought to Teach Us About the Media

https://techrights.org/n/2026/06/02/What_Efforts_to_Cancel_Richard_Stallman_Ought_to_Teach_Us_Abo...
3•amcclure•15m ago•0 comments

Show HN: icantmarket – A verified help exchange for devs who can't market

https://icantmarket.com/
1•pranabsarkar•18m ago•1 comments

StarMapper, see where your GitHub stargazers live on a map (free, OSS

https://starmapper.bruniaux.com
1•FlorianBruniaux•18m ago•0 comments

Apple has released an update to XProtect for all macOS

https://eclecticlight.co/2026/06/02/apple-has-released-an-update-to-xprotect-for-all-macos-35/
1•speckx•19m ago•0 comments

Microsoft's MAI-Image-2.5 is #3 on Image Arena

https://microsoft.ai/models/mai-image-2-5/
2•EvanZhouDev•19m ago•0 comments

Show HN: Lateos/NPM-scan – open-source NPM supply chain scanner, v0.18.3

https://www.npmjs.com/package/@lateos/npm-scan
1•lateos-ai•21m ago•0 comments

Ditching the agent sandbox for AWS S3 Files

https://falconer.com/notes/how-falconer-powers-agents-with-aws-s3-files/
8•iamgioh•23m ago•0 comments

Microsoft Releases MAI-Thinking-1 Reasoning Model

https://www.theverge.com/tech/941664/microsoft-ai-model-reasoning-mai-thinking-1-build-2026
3•EvanZhouDev•24m ago•0 comments

Netflix uses Java – 2026 Edition [video]

https://www.youtube.com/watch?v=ucJTPda_zx0
2•dzonga•25m ago•1 comments

Show HN: Map of 5000 YC Startups

https://platoseed.com/the-map
1•mdb19•26m ago•0 comments