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•4mo 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•4mo 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•4mo 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.

Genomic Integration and Molecular Dysregulation in Cancer Following mRNA Vaxx

https://zenodo.org/records/17122912
1•palmfacehn•4m ago•1 comments

Evals in 2025: benchmarks to build models people can use

https://github.com/huggingface/evaluation-guidebook/blob/main/yearly_dives/2025-evaluations-for-u...
1•jxmorris12•8m ago•0 comments

ByteDance's new Diffusion LLM beats other dLLMs

https://seed.bytedance.com/en/seed_diffusion
1•NeoInHacker•8m ago•1 comments

NASA+ Is Coming to Netflix This Summer

https://www.nasa.gov/news-release/nasa-is-coming-to-netflix-this-summer/
1•mgh2•15m ago•0 comments

BART Cab Cam: Yellow Line from SFO Airport to Antioch

https://www.youtube.com/watch?v=2KqdAlQvj1A
1•hahahacorn•16m ago•0 comments

Ask HN: What makes a great engineering manager?

2•mrroryflint•16m ago•0 comments

Mercedes to bring back cabin buttons for current and future models

https://www.autocar.co.uk/car-news/new-cars/mercedes-bring-back-cabin-buttons-current-and-future-...
2•breve•21m ago•0 comments

Saving Lives by Ignoring the Models

https://www.statesmanjournal.com/story/travel/outdoors/explore/2025/09/10/explore-oregon-podcast-...
1•schmichael•26m ago•0 comments

Who ~Framed~ Created Pitman?

http://blog.hardcoregaming101.net/2011/08/who-framed-created-pitman.html
1•snvzz•30m ago•0 comments

INapGPU: Text-mode graphics card, using only TTL gates

https://github.com/Leoneq/iNapGPU
2•userbinator•31m ago•0 comments

Notes on writing a monovocalic sonnet

https://www.muppetlabs.com/~breadbox/txt/infirni-notes.html
2•quuxplusone•40m ago•0 comments

We have outgrown the Process model

https://sidhion.com/blog/process_model_outgrown/
2•todsacerdoti•42m ago•0 comments

Three Perspectives on Equivalence Relations

https://pseudonium.github.io/2025/09/16/Three_Perspectives_on_Equivalence_Relations.html
1•nill0•44m ago•0 comments

Monoids in Public

https://blog.veritates.love/monoids_in_public.html
4•Bogdanp•46m ago•0 comments

The Newton-to-Quantum Mechanics tension between determinism and indeterminism

https://www.mathpages.com/rr/s9-07/9-07.htm
1•felineflock•46m ago•0 comments

OpenAI says models are programmed to make stuff up

https://www.theregister.com/2025/09/17/openai_hallucinations_incentives/
2•damethos•49m ago•0 comments

The Seneca: First Edition $8k PC Keyboard

https://www.norbauer.co/products/the-seneca
1•evo_9•50m ago•1 comments

AI bots 'coached' son to suicide: grieving mom delivers testimony [video]

https://www.youtube.com/watch?v=yMlvL7T0i4Q
3•mgh2•52m ago•0 comments

Why, as a responsible adult, SimCity 2000 hits differently

https://arstechnica.com/gaming/2025/09/thirty-years-later-simcity-2000-hasnt-changed-but-i-have/
3•doppp•58m ago•0 comments

How to Build Secure AI Coding Agents with Cerebras and Docker Compose

https://www.docker.com/blog/cerebras-docker-compose-secure-ai-coding-agents/
1•meysamazad•1h ago•0 comments

Kubernetes v1.34: Pods Report DRA Resource Health

https://kubernetes.io/blog/2025/09/17/kubernetes-v1-34-pods-report-dra-resource-health/
2•meysamazad•1h ago•0 comments

Show HN: Made NZ's member of parliament financial disclosure data searchable

https://open-register-of-pecuniary-interests.joshmcarthur.com/
2•sudojosh•1h ago•0 comments

Could a primordial black hole's last burst explain a mysteriously neutrino?

https://news.mit.edu/2025/could-primordial-black-holes-last-burst-explain-mysteriously-energetic-...
1•meysamazad•1h ago•0 comments

Why Is Xcode So Antagonistic to Reduced Vision?

https://thecodist.com/why-is-xcode-so-antagonistic-to-reduced-vision/
2•doppp•1h ago•0 comments

China bans its biggest tech companies from acquiring Nvidia chips, says report

https://www.tomshardware.com/tech-industry/artificial-intelligence/china-bans-its-biggest-tech-co...
2•thunderbong•1h ago•0 comments

How HR took over British business and got in the way of actual work

https://www.thetimes.com/business-money/companies/article/how-hr-took-over-british-business-6rg8q...
1•petethomas•1h ago•0 comments

LLVM: Our AI policy vs. code of conduct and vs. reality

https://discourse.llvm.org/t/our-ai-policy-vs-code-of-conduct-and-vs-reality/88300
2•pabs3•1h ago•0 comments

Biotech firm announces 'pivotal step' in effort to bring back the dodo

https://www.cnn.com/2025/09/17/science/colossal-dodo-deextinction-rock-pigeon
1•petethomas•1h ago•0 comments

ABC Pulls Jimmy Kimmel Off Air for Charlie Kirk Comments After FCC Pressure

https://www.nytimes.com/2025/09/17/business/media/abc-jimmy-kimmel.html
16•standeven•1h ago•3 comments

Security Industry turns "Without Warranty" to "Supply Chain Attack, Shame on You

https://shrimp.starlightnet.work/notes/acl265cbxkqwjayx
2•pabs3•1h ago•0 comments