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.

Alan's conservative countdown to AGI: 99%

https://lifearchitect.ai/agi/
1•mpodeley•3m ago•0 comments

Trump waives Russia-related sanctions before they even kick in

https://www.cnn.com/2026/10/16/europe/us-ukraine-russia-sanctions-intl-hnk
2•MilnerRoute•6m ago•0 comments

TLS/SSL Certificates: Upcoming Reductions in Validity and Data Reuse Periods

https://cabforum.org/2025/04/11/ballot-sc081v3-introduce-schedule-of-reducing-validity-and-data-r...
1•okzgn•13m ago•0 comments

Show HN: I made a million dollar music video for $400

https://app.treechat.com/quest/post-5f994d78-3ceb-4b79-927f-1dd8d3602bd9
1•metamitya•13m ago•0 comments

Ask HN: Not sure but maybe that's why we all do coding

1•BlackScythe•17m ago•2 comments

Jshook: Open-source MCP server for runtime reverse engineering

https://github.com/vmoranv/jshookmcp
1•vmoranv•19m ago•0 comments

China to Restrict Open-Weights Model Exports

https://www.reuters.com/world/asia-pacific/china-proposes-adding-40-ai-biotech-solar-technologies...
3•gr_norm•21m ago•0 comments

Show HN: Connectio – One local address for all your development servers

https://connectio.pulkitbanta.com/
1•pulkitbanta•25m ago•0 comments

Bloomberg NEF on the Future of Global Energy [video]

https://www.youtube.com/watch?v=y94yV7WUwGY
2•thelastgallon•26m ago•0 comments

MapQuest will now show you where Flock cameras are in your neighborhood

https://www.engadget.com/2288729/mapquest-will-now-show-you-where-flock-cameras-are-in-your-neigh...
2•wondersky•26m ago•1 comments

Show HN: Tensor Golf – Practise PyTorch Through Short Drills

https://tensor.golf
1•singular_atomic•27m ago•0 comments

DragonRuby – I never wanted to create a game engine

https://gist.github.com/amirrajan/9e71d13f3108e5e66ebc98c752337ca5
2•amirrajan•31m ago•0 comments

Yonaguni Monument: Natural Formation or Man-Made Ruin?

https://geoscopy.com/yonaguni-monument-natural-formation-or-man-made-ruin/
1•peter_d_sherman•35m ago•0 comments

SF AI Founder's Zombie Shooter Game Turns Tenderloin Residents into Targets

https://sfist.com/2026/10/15/sf-tech-founders-zombie-shooter-game-turns-tenderloin-residents-into...
1•ubiquitysc•41m ago•0 comments

Butlerian Jihad

https://dune.fandom.com/wiki/Butlerian_Jihad
59•wetwater•41m ago•24 comments

Show HN: Let AI order DoorDash for me – under my watch – no playwright

https://www.wysebee.com
1•zxu•44m ago•0 comments

Enitre Chat history Is Gone, overnight

https://github.com/zai-org/feedback/issues/1064
1•97laos•45m ago•0 comments

Cloud computing is a trap, warns GNU founder Richard Stallman (2008)

https://www.theguardian.com/technology/2008/sep/29/cloud.computing.richard.stallman
9•arm32•49m ago•2 comments

An Introduction to EUV Sources for Lithography [pdf]

https://strobe.colorado.edu/wp-content/uploads/STROBE_ASML-EUV-Sources_Purvis_25-Sept-2020-1.pdf
1•pillars•52m ago•0 comments

Publishers' Trust in Nippan Dented by Unauthorized Book Sales for AI Training

https://japannews.yomiuri.co.jp/science-nature/technology/20261014-353599/
2•mushstory•54m ago•0 comments

China is second only to the U.S. in healthcare costs as a percentage of income

https://www.cnbc.com/2026/10/15/chinese-spending-nearly-as-much-of-income-as-americans-on-healthc...
3•lxm•57m ago•0 comments

Show HN: Twain, a diff viewer like Meld, but for the age of AI

https://github.com/andunieee/twain
1•andunie•59m ago•0 comments

Using a funded cryptocurrency wallet without authorization

https://alignment.openai.com/misalignment-reports/using-a-funded-test-cryptocurrency-wallet-witho...
2•pamcake•1h ago•0 comments

Who Was the Buddha?

https://upekkhaorg.substack.com/p/who-was-the-buddha
2•arihantparsoya•1h ago•0 comments

Moss-Image: Text-to-Image Generation with Native Layout Control

https://openmoss.ai/MOSS-Image/
2•b0ner_t0ner•1h ago•0 comments

Overlooked brown fat in our bodies linked to wide range of health benefits

https://www.nature.com/articles/d41586-026-03302-w
1•gmays•1h ago•0 comments

ICS Space Events Calendar

https://github.com/lkorth/space-calendar
2•lkorth•1h ago•0 comments

Ask HN: Should I use Claude Code to create a replacement Apple IIGS ROM?

1•jkalbfeld•1h ago•2 comments

Show HN: FeedTamer – Filter YouTube by word, channel, topic, or allowlist

https://thefeedtamer.com/
1•thefeedtamer•1h ago•0 comments

Ask HN: Claude Code since the last update "Held message from another session"

1•consumer451•1h ago•0 comments