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.

Onionspector – now let's see what The Onion knows about you

https://0ut3r.space/2026/09/06/onionspector/
1•h0ek•1m ago•0 comments

Opus (Audio Format)

https://en.wikipedia.org/wiki/Opus_(audio_format)
1•tosh•1m ago•0 comments

SeekMoon: From IDE to ADE

https://www.moonbitlang.com/blog/seekmoon-from-ide-to-ade
1•syumei•2m ago•0 comments

Podcast: We Spoke to an Amazon Worker Destroying Books for AI

https://www.404media.co/email/ed687963-910c-488c-95d5-b06f911b214e/
1•r_singh•3m ago•0 comments

Volcanic ash cloud halts flights at five Indonesian airports

https://www.theguardian.com/world/2026/sep/06/volcanic-ash-cloud-halts-flights-at-indonesias-main...
1•tosh•4m ago•0 comments

YouSpeed – Live speed-limit assistance

https://peertube.openstreetmap.fr/w/44a9cKesgtzu1Jo3FLS5gD
1•altilunium•10m ago•0 comments

Meet Claude: ABC's new regional cadet journalist

https://independentaustralia.net/business/business-display/meet-claude-abcs-new-regional-cadet-jo...
2•frays•11m ago•0 comments

Matmul as a Service, Backed by Tinygrad

https://simpleobservability.com/blog/introducing-maas
1•khazit•12m ago•0 comments

About Arks

https://arks.org/about/
1•Bluestein•17m ago•0 comments

State of the Map 2026 Video Channel

https://peertube.openstreetmap.fr/c/sotm_2026/videos
1•altilunium•17m ago•0 comments

McDonald's India: Intern Hacks Company's X Account over Unpaid Salary

https://www.freepressjournal.in/viral/macdonalds-india-controversy-intern-allegedly-hacks-company...
3•rustoo•17m ago•0 comments

Company's Digital Headquarters

https://corporatesuite.co/
6•pirminmanz•18m ago•1 comments

Stemma – one source of truth for Claude.md, AGENTS.md and Copilot

https://github.com/alexvinola/stemma-cli
2•vrilex•18m ago•0 comments

Experiment: How easy is it to buy a research paper on the black market?

https://news.err.ee/1610129869/experiment-how-easy-is-it-to-buy-a-research-paper-on-the-black-market
1•vintagedave•19m ago•0 comments

Show HN: Keen Bean – Mac meeting notes that draft the spec while you talk

https://keenbean.app/
2•SavvyMonkey•22m ago•0 comments

Court Filings in A.I. Suit Invoke Copyright Law, Culture and Sports

https://www.nytimes.com/2026/09/04/technology/openai-microsoft-new-york-times-lawsuit.html
1•1vuio0pswjnm7•24m ago•0 comments

Messageboards Are All You Need [pdf]

https://flotilla.cc/messageboards-are-all-you-need.pdf
1•ursushoribilis•25m ago•0 comments

Changing the world one vegetable at a time: UK first carbon-negative greengrocer

https://www.leicester.news/changing-the-world-one-vegetable-at-a-time/
1•DamonHD•26m ago•0 comments

Does your landing page look generated?

https://slop-detect.com/
2•stared•31m ago•2 comments

Photon – Search as you type with OpenStreetMap

https://mastodon.social/@rphyrin/117223366663059114
1•altilunium•33m ago•0 comments

Shaping the problem (of transaction foundation models)

https://sistemalabs.com/blog/shaping-the-problem
1•0xideas•36m ago•0 comments

South Korea exports surpass full-year record, hit $709.4B YTD

https://www.reuters.com/world/asia-pacific/south-korea-exports-surpass-full-year-record-hit-7094-...
2•Jhsto•37m ago•0 comments

The Era of Agentic Benchmaxxing

https://kaitchup.substack.com/p/the-era-of-agentic-benchmaxxing
3•thm•40m ago•0 comments

People Don't Search in One Place Anymore

1•writebysachin•42m ago•0 comments

Start with one customer

https://josem.co/start-with-one-customer/
2•josem•44m ago•0 comments

Etsy seller's 'bruh' T-shirts were removed over a trademark complaint

https://www.cbc.ca/news/business/bruh-etsy-trademark-infringement-9.7331470
2•geox•44m ago•0 comments

WordStar Lives Again (and Again)

https://github.com/nampara-ai/wordstar
2•SamuraiLion•47m ago•0 comments

Online bookies accused of UK privacy breaches with use of cookie banners

https://www.theguardian.com/technology/2026/sep/06/online-bookies-privacy-breaches-cookies-tracking
1•beardyw•49m ago•0 comments

Trump administration officials wrestling with the spiritual consequences of AI

https://www.wsj.com/tech/ai/vance-called-ai-satanic-he-struck-a-chord-among-christian-republicans...
3•eternalreturn•49m ago•0 comments

Show HN: Recipery: Self-hosted recipe manager, no database required

https://recipery.dev
1•0megion•50m ago•0 comments