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.

Show HN: Ukodus – A Sudoku galaxy where every solve becomes a star (Rust/WASM)

https://ukodus.now/
1•kcirtapfrmspc•1m ago•0 comments

Show HN: Circle Crop Image – A lightweight, privacy-first circle cropper

https://circlecropimage.dev
1•steve200512•3m ago•0 comments

Anthropic 25x CI in six months

https://claude.com/blog/agentic-coding-is-straining-ci-heres-how-we-scaled-test-impact-analysis-a...
1•juanfatas•5m ago•0 comments

The Books We Read Too Late–and That You Should Read Now

https://www.theatlantic.com/books/archive/2022/09/books-younger-selves-recommendations/671601/
1•the-mitr•6m ago•0 comments

Negativland, Culture Jamming, and the Art of Making Something New

https://blog.archive.org/2026/09/11/negativland-culture-jamming-and-the-art-of-making-something-new/
2•bananaboy•12m ago•0 comments

Show HN: SeaSearch – Lightweight, S3-backed multi-tenant search engine

2•Daniel-Pan•12m ago•2 comments

Small Tech: The Need for Principle-Driven Software

https://cdox.studio/small-tech
5•jethronethro•14m ago•0 comments

Every US Electrical Outlet Explained

https://practical.engineering/blog/2026/9/15/every-us-electrical-outlet-explained
1•vismit2000•16m ago•0 comments

American Incomes Hit Record Last Year as Women Gained Ground

https://www.wsj.com/economy/consumers/american-incomes-hit-record-last-year-as-women-gained-groun...
1•kaycebasques•16m ago•0 comments

HashNotch – Available NOW for Mac OS 27 at its most stable release

https://github.com/Hash-7777/HashNotch/releases/tag/v1.5.0
1•New_Hash•18m ago•0 comments

AI is not going to kill you

https://sufficientlyadvanced.blog/ai-is-not-going-to-kill-you/
2•mohonishc•19m ago•1 comments

The Shadows Lurking in the Equations – Underwater Islands

https://gods.art/articles/equation_shadows
1•vismit2000•21m ago•0 comments

Musk's companies must explain why they dropped antitrust claims against Apple

https://www.politico.com/news/2026/09/15/elon-musk-antitrust-apple-openai-01078840
3•CharlesW•21m ago•0 comments

A History of Mathematics – Victor J. Katz

https://books.google.com/books/about/A_History_of_Mathematics.html
1•vismit2000•22m ago•0 comments

Ask HN: Shifting Reoccuring Agentic Workflow to ML Process?

1•wwolfson97•26m ago•1 comments

Sony SMC-70

https://zzxio.com/about-us/sony-smc-70/
1•Bluestein•28m ago•0 comments

The New Moscow: A Digital Utopia Doubling as a Surveillance Trap

https://www.nytimes.com/2026/09/14/world/europe/moscow-russia-putin-digital-surveillance.html
1•reaperducer•29m ago•0 comments

You can run Git on object storage if you re-make packfiles

https://www.tigrisdata.com/blog/objgit-packfiles/
1•xyzzy_plugh•31m ago•0 comments

The walls and avenues of Chang-An (2018)

http://dragonsarmory.blogspot.com/2018/05/chang-the-city-of-eternal-peace-part-2.html
1•gone35•31m ago•0 comments

Stay discoverable in search while disallowing AI training

https://blog.cloudflare.com/accountable-mixed-use-ai-crawlers/
19•djfergus•33m ago•6 comments

Implement a credit freeze to increase your financial security

https://graphthinking.blogspot.com/2016/11/to-increase-your-financial-security.html
1•physicsgraph•33m ago•0 comments

Mark Zuckerberg: Labs should self-regulate

https://twitter.com/finkd/status/2099997096896274533
3•mfiguiere•34m ago•0 comments

Show HN: Graft – local-first persistent memory for coding agents

https://github.com/AEndrix03/Graft
1•AEndrix03•34m ago•0 comments

The extreme engineering of aircraft windows

https://www.bbc.com/news/articles/c0lr69zeyrwo
2•1659447091•37m ago•0 comments

Computer Use for iPad

https://twitter.com/jamiepinheiro/status/2099981750046953653
2•jamiepinheiro•41m ago•0 comments

Free Palestine

https://www.theguardian.com/us-news/2026/sep/15/ed-sheeran-macklemore-palestine-openers-finneas
5•mo7061•46m ago•0 comments

Open HamClock Backend

https://ohb.works/
3•firesteelrain•47m ago•0 comments

The Roman telescope has enough gas for 22 years, double NASA's expectations

https://arstechnica.com/space/2026/09/the-roman-telescope-has-enough-gas-for-22-years-double-nasa...
2•jnord•49m ago•0 comments

Breaking macOS Screen Time for fun and profit

https://dunkirk.sh/blog/screentime/
1•clacker-o-matic•49m ago•0 comments

Apple Reference Image: A New Approach for Verified Photography

https://security.apple.com/blog/apple-reference-image/
7•imwally•51m ago•2 comments