frontpage.
newsnewestaskshowjobs

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.

Jensen Huang Reinstated as Nvidia Boss

https://petapixel.com/2026/11/23/jensen-huang-reinstated-as-nvidia-boss-board-satisifed-with-his-...
1•andsoitis•1m ago•0 comments

Important security notification regarding your Microsoft Entra tenant

https://old.reddit.com/r/sysadmin/comments/1y1of2u/important_security_notification_regarding/
1•sexy_seedbox•3m ago•0 comments

Honesty

https://kinocow.com/on-honesty
1•syliconadder•3m ago•0 comments

Applying Nvidia's "You Don't Need Long Context" to a 4B Model on a 6GB GPU

https://blog.wiseprobe.io/posts/coding-agent-6gb-laptop-gpu-4b-model/
1•wiseprobe•4m ago•1 comments

Planned lead azide detonation fact sheet – Iowa HHS

https://hhs.iowa.gov/media/19822
1•datsci_est_2015•5m ago•0 comments

SQLite continuity CLI for zero-drift coding agents

https://github.com/aomnimedia/tenuto
1•kellya•5m ago•0 comments

CVSS Armageddon

https://rhaist.github.io/cvss-armageddon/
1•st_goliath•6m ago•0 comments

Kolibri 1.1: English-German open-weight model with sparse attention

https://aleph-alpha.com/en/blog/kolibri-1-1/
4•peterBlue75•7m ago•0 comments

Seeing the machine code of your Java program, with a few lines of Java

https://lemire.me/blog/2026/11/23/seeing-the-machine-code-of-your-java-program/
1•mfiguiere•7m ago•0 comments

SalaryTrio – A 6.9 KB Rust WebAssembly salary calculator across 155 currencies

https://salarytrio.com/
1•kylekshaft•9m ago•0 comments

Faster EBS Snapshot Restore, Precision Prewarming

https://medium.com/appian-tech-blog/hydrator-8c3b430c17f1
1•madmaze•10m ago•0 comments

Baristas and shelf-stockers would make good SpaceX data center workers

https://www.businessinsider.com/elon-musk-data-center-workers-baristas-stocking-shelves-2026-11
2•posthumangr•12m ago•1 comments

The Death of Academic Freedom in Norway

https://glenndiesen.substack.com/p/the-death-of-academic-freedom-in
2•hackandthink•14m ago•0 comments

The Short Age of Dragon Riders

https://atilloy.com/2026/11/16/the-short-age-of-dragon-riders/
2•libraryofbabel•15m ago•0 comments

Support for Office 2021 has ended

https://diamondgeezer.blogspot.com/2026/10/support-for-office-2021-has-ended.html
2•surprisetalk•15m ago•0 comments

Old music from MySpace band pages

https://top8.fm/
2•refsab•15m ago•1 comments

States Sue SpaceX Over Grok Deepfakes

https://www.wired.com/story/states-sue-spacex-over-grok-deepfakes/
3•Brajeshwar•16m ago•0 comments

Almost Irrelevant: Choosing a Language When Agents Write the Code

https://raskell.io/articles/almost-irrelevant/
2•speckx•16m ago•0 comments

The Debt Trap

https://pluralistic.net/2026/11/23/grasshoppers-v-ants/
4•hn_acker•16m ago•0 comments

We didn't want to write a book. But we wanted to write that book.

https://www.ssp.sh/blog/cynthia-dunlop-writing-books/
3•zazuke•17m ago•0 comments

I Fixed My LinkedIn Feed

https://brodzinski.com/2026/11/how-i-fixed-linkedin.html
2•flail•17m ago•0 comments

Charles Sturt University leads new research into transparent solar panels

https://www.abc.net.au/news/2026-10-30/csu-launches-research-into-transparent-solar-panels/107318734
2•speckx•18m ago•0 comments

Planning, imitation, and offline reinforcement learning

https://stochastic.blog/planning-imitation-and-offline-reinforcement-learning/
2•Anon84•18m ago•0 comments

Teach your coding agent your design taste

https://get-pinch.io/
2•bornslipppy•20m ago•0 comments

Why is writing mathematical proofs more fault-proof than computer code? (2017)

https://cs.stackexchange.com/questions/85327/why-is-writing-down-mathematical-proofs-more-fault-p...
3•surround•20m ago•1 comments

Exascale fusion simulation team named finalist for 2026 Gordon Bell Prize

https://www.alcf.anl.gov/news/exascale-fusion-simulation-team-named-finalist-2026-gordon-bell-prize
2•rbanffy•21m ago•0 comments

Show HN: SecureVibe – Find and trace vulnerabilities for vibe coded apps

https://securevibe-dev.vercel.app/
2•Abdo2026•22m ago•0 comments

Taylor Swift Kills People

https://klementoninvesting.substack.com/p/taylor-swift-kills-people
2•RickJWagner•23m ago•0 comments

The Bathroom (Short Story)

https://www.michelecoscia.com/?p=2634
1•mikk14•25m ago•0 comments

AI may have helped solve one of mathematics' biggest mysteries

https://soargram.io/content/154869189
2•levicanskij•25m ago•0 comments