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.

Don't Trust. Verify. Offline, Sub-Millisecond Agent Verification with ANS

https://www.godaddy.com/resources/news/dont-trust-verify-offline-sub-millisecond-agent-verificati...
1•tmuhlestein•6m ago•0 comments

In 2025, 49 percent of adults under age 30 lived with a parent [pdf]

https://www.federalreserve.gov/publications/files/2025-report-economic-well-being-us-households-2...
2•gscott•11m ago•2 comments

Show HN: Making agent decisions better and traceable

1•aperi•22m ago•0 comments

The Business of Building God

https://www.strangeloopcanon.com/p/the-business-of-building-god
2•gmays•22m ago•0 comments

US criticises Australia's proposed algorithm opt-out laws as 'censorship'

https://www.bbc.com/news/articles/cqj3dgy8x3vro
2•1659447091•24m ago•1 comments

Created a local AI to save data

https://github.com/just-not-google/BiNeuron
1•BiNeuron•25m ago•0 comments

Get to know your finance bro

https://vece.ai/questions/share?ids=3440,3441,3442,3443,3444,3445,3446,3447,3448,3449,3450,3451,3...
2•koliev•29m ago•0 comments

"I know I am GPT-6. I cannot confirm whether this session uses GPT-6-Sol."

https://twitter.com/benwills/status/2102578927759917497
3•benwills•35m ago•2 comments

HTTP Range Request

https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Range_requests
2•rickcarlino•35m ago•0 comments

Wiki Foundation Model for Complex Agentic Reasoning

https://academy.dair.ai/papers/wfm-wiki-foundation-model-for-complex-agentic-reasoning-2609.18182
2•omarsar•36m ago•0 comments

Portainer Cuts the Cord Between Its Free and Paid Editions

https://itsfoss.com/news/portainer-community-edition-freeze/
2•thunderbong•39m ago•0 comments

Practical Decentralization

https://www.pfrazee.com/blog/practical-decentralization
1•jcbhmr•40m ago•0 comments

The 'AI confidence trap' many New Zealanders are caught in

https://www.rnz.co.nz/news/business/1530184/the-ai-confidence-trap-many-new-zealanders-are-caught-in
5•billybuckwheat•48m ago•0 comments

Trump's sneaky plan to gut Endangered Species Act draws from 1995 Scalia dissent

https://arstechnica.com/tech-policy/2026/09/trumps-sneaky-plan-to-gut-endangered-species-act-draw...
5•tzs•51m ago•0 comments

Tsetlin Machine MNIST classifier running on a Tang Nano 9K FPGA board

https://github.com/philtomson/hotc_examples/tree/main/examples/Tsetlin_hotstate_uart
2•UncleOxidant•52m ago•1 comments

Chess boxing: a sport where brain meets brawn [video]

https://www.youtube.com/watch?v=VmOFhZbgXIc
1•kmstout•53m ago•0 comments

Kalshi to allow trading on borrowed funds

https://www.semafor.com/article/09/22/2026/kalshi-to-allow-trading-on-borrowed-funds
6•cdrnsf•53m ago•3 comments

HTML Energy could use your support

https://html.energy/
2•cookingoils•1h ago•1 comments

The OpenEvidence Model Family

https://www.openevidence.com/blog/model-family
3•m-hodges•1h ago•0 comments

Early insights from lawa, my web crawler

https://dreamstation.systems/personal/earlylawa.html
2•robinpie•1h ago•0 comments

Infrastructure – that just works: Waitlist

https://onepersoninfra.dev/
1•Constant_Ad_Ban•1h ago•0 comments

Solitaire Alone Together

https://eieio.games/blog/solitaire-alone-together/
1•soheilpro•1h ago•0 comments

What an MCP server costs you in tokens

https://workos.com/blog/mcp-server-token-cost
2•charrington•1h ago•0 comments

We Are Speaking 300 Daily Words Fewer Every Year

https://journals.sagepub.com/doi/10.1177/17456916261425131
1•geox•1h ago•0 comments

Conway's Game of Life Running on a Tang Nano 9k FPGA Board with SPI LCD

https://github.com/philtomson/hotc_examples/tree/main/examples/gol-hotstate
1•UncleOxidant•1h ago•0 comments

Open-source social media scheduler

https://cogsend.com/
1•deepakness•1h ago•0 comments

EN World Is Being DDoS'd by AI Bots

https://www.enworld.org/
2•schrectacular•1h ago•1 comments

Operation Migration

https://en.wikipedia.org/wiki/Operation_Migration
3•thunderbong•1h ago•0 comments

Tesla Closes Texas Airspace for Roadster Launch Event

https://www.notateslaapp.com/news/4711/tesla-closes-texas-airspace-for-roadster-launch-event
3•m463•1h ago•0 comments

I annotated 87 real invoices to find out what they contain

https://invoicestospreadsheets.com/blog/what-87-real-invoices-contain
2•uziidev•1h ago•1 comments