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.

Hideous Little Bugs Are Invading California and Biting People's Feet (2022)

https://www.bgr.com/science/these-hideous-little-bugs-are-invading-california-and-biting-peoples-...
1•mooreds•1m ago•0 comments

OpenAI launches Computer History to track macOS activity as memory timeline

https://thenewstack.io/openai-chatgpt-computer-history/
2•thoughtpeddler•1m ago•0 comments

AMD Instinct MI455X Deep Dive: CDNA 5 Marks the Next Era of Instinct

https://www.servethehome.com/amd-instinct-mi455x-deep-dive-cdna-5-marks-the-next-era-of-instinct/
1•rbanffy•1m ago•0 comments

Apply for a Second US Passport Book

https://travel.state.gov/en/passports/apply/unique-needs/second-passport-book.html
1•mooreds•2m ago•0 comments

AI Can Now Design Functional Viruses

https://spectrum.ieee.org/ai-designed-virus
1•rbanffy•3m ago•0 comments

Referee.Chat – Set the goal. An AI panel works your goal. Referee clears it done

https://referee.chat/
1•nadermx•4m ago•0 comments

Administration to impose tariffs on drone imports, White House says

https://www.reuters.com/world/us/trump-administration-impose-tariffs-drone-imports-white-house-sa...
1•petethomas•5m ago•0 comments

Ask HN: What do you use for budgeting in the business?

1•killjoywashere•6m ago•0 comments

UBOM

https://github.com/comalice/ubom-v4
1•all2•6m ago•1 comments

Toast 1

https://www.mixedbread.com/blog/toast-1
1•breadislove•9m ago•0 comments

Noop – Privacy respecting Whoop replacement

https://github.com/ryanbr/noop
1•Cider9986•11m ago•0 comments

Talking with Synopsys about the Physics of Chip Design at DAC 2026

https://chipsandcheese.com/p/talking-with-synopsys-about-the-physics
1•rbanffy•16m ago•0 comments

Show HN: Code Stitcher Godot Support

1•aihatterer•18m ago•0 comments

Blog about things you don't understand yet

https://www.seangoedecke.com/blog-about-things-you-dont-understand-yet/
3•gfysfm•18m ago•0 comments

Tether Completes the Largest Inaugural Financial Audit in History

https://tether.io/news/tether-completes-the-largest-inaugural-financial-audit-in-history/
3•latchkey•18m ago•2 comments

Trump Gives Green Light to U.S. Companies to Aim Hacks at Cybercriminals

https://www.nytimes.com/2026/08/13/us/politics/trump-private-companies-hacking-cybercriminals.html
1•whyage•20m ago•0 comments

Standard RAG returns funny neighbors. Multi-vector fixes the signal

https://github.com/insightitsGit/VectorPrism
1•parvaamin•21m ago•0 comments

What We Lost When Computers Became Easier to Use [video]

https://www.youtube.com/watch?v=XHeMsXDyw2A
1•pierres7•28m ago•1 comments

Google Has Most of My Email Because It Has All of Yours (2014)

https://mako.cc/copyrighteous/google-has-most-of-my-email-because-it-has-all-of-yours
4•downbad_•32m ago•0 comments

Company Knowledge in ChatGPT (Business, Enterprise, and Edu)

https://help.openai.com/en/articles/12628342-company-knowledge-in-chatgpt-business-enterprise-and...
2•ssuds•36m ago•0 comments

Dangerous things should be difficult to do by accident

http://fexpr.blogspot.com/2011/05/dangerous-things-should-be-difficult-to.html
4•b-man•39m ago•0 comments

How AI text watermarking works

https://declaude.org/watermarking/
5•padolsey•41m ago•1 comments

Show HN: YazSes – offline hold-to-talk voice dictation for Linux/macOS/Windows

https://github.com/MSKazemi/yazses
2•mskazemi•41m ago•0 comments

I tried the new ChatGPT Desktop App for Linux – but I'll stick to my browser

https://www.zdnet.com/article/openai-brings-the-chatgpt-desktop-app-to-linux/
1•CrankyBear•41m ago•0 comments

Does anyone run Postgres without PgBouncer?

https://brandur.org/fragments/postgres-without-pgbouncer
2•birdculture•44m ago•0 comments

Oral History of John Chowning (Computer History) [video]

https://www.youtube.com/watch?v=e1Xn3030IvM
2•Rochus•45m ago•0 comments

AI is learning clinical judgment by practicing on simulated patients

https://www.echohive.ai/ai-clinical-residency
1•echohive42•49m ago•0 comments

Science investigation casts doubt on genes hailed for warding off Alzheimer's

https://www.science.org/content/article/science-investigation-casts-doubt-genes-hailed-warding-al...
1•sbulaev•51m ago•0 comments

Move FreeBSD System Between ZFS Disks

https://vermaden.wordpress.com/2026/08/14/move-freebsd-between-zfs-disks/
2•vermaden•51m ago•1 comments

PBS loses 70 years of TV history after cloud storage vendor goes defunct

https://www.tomshardware.com/software/cloud-storage/nine-pbs-loses-access-to-70-years-of-data-aft...
32•doener•52m ago•7 comments