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.

'Pure arrogance': anger in Finland as Google illegally fells 250k trees

https://www.theguardian.com/environment/ng-interactive/2026/oct/22/finland-google-felling-trees-d...
1•Symbiote•33s ago•0 comments

Most Americans want to halt all data center construction

https://www.washingtonpost.com/technology/2026/10/21/poll-finds-most-americans-disapprove-how-tru...
2•cdrnsf•3m ago•0 comments

Critical Fortinet Security Release

https://www.fortinet.com/blog/ciso-collective/fortinet-releases-security-hardening-release-for-mu...
2•TechTechTech•6m ago•0 comments

China Moves to Lock Its Own Top AI and Chip Designs Behind Export Controls

https://techpresso.co/blog/china-ai-export-controls-models-chip-designs
1•messpoiun•6m ago•0 comments

ZXC – Lossless Compression Built for Ultra-Fast Decode

https://github.com/hellobertrand/zxc/blob/main/README.md
1•chmike•7m ago•0 comments

Show HN: agent-marketplace

https://www.adyen.com/knowledge-hub/agent-marketplace
3•AlexanderGrooff•10m ago•0 comments

Politico and Telegraph owner pitched deal to buy European arm of TikTok

https://www.ft.com/content/171220b9-8d8e-4d82-a866-f9aaf258e0fb
1•alephnerd•11m ago•0 comments

Unitree Introducing: H2-X Kung Fu Legend Guardian

https://twitter.com/UnitreeRobotics/status/2112819774573179175
1•ksec•13m ago•0 comments

Replacing PyTorch with Julia and Reactant: One Year In

https://csvance.dev/posts/2026-10-22-reactant-end-to-end/
1•csvance•13m ago•1 comments

eMudhra 1FA OTP Login Bypass

https://mastodon.catgirl.cloud/@49016/117475921584308861
2•majorchord•14m ago•0 comments

Why your Gmail open rate is 30-40% too high, and how to check your own numbers

https://pay.trytoolboxpro.com/blog/why-gmail-open-rates-are-inflated
1•hyehugh•15m ago•0 comments

ASGC Games Industry Layoffs Tracker

https://layoffs.asgc.gg/
1•pjmlp•16m ago•0 comments

Tablesample Picks Rows

https://boringsql.com/posts/tablesample/
1•surprisetalk•17m ago•0 comments

State of IaaS and Compute 2026: market benchmark and cost analysis

https://cloudcompare.dev/reports/state-of-iaas-and-compute-2026-market-benchmark-and-cost-analysis
1•atmeszaros•17m ago•0 comments

1 in 10 members of Congress traded stocks in companies their committees oversee

https://www.kadoa.com/congress/insights/committee-trades
1•hubraumhugo•18m ago•0 comments

Trump Asked Google to Rename Atlantic Ocean 'Trump Ocean'

https://www.newsweek.com/trump-asked-google-rename-atlantic-trump-ocean-12603389
7•TrackerFF•19m ago•0 comments

The New Big Ball of Mud: Why Agentic AI Systems Turn Fragile

https://www.nngroup.com/articles/big-ball-of-mud-ai/
3•TonyAlicea10•22m ago•0 comments

Diplomatic Ways to Critique AI Slop

https://www.seascapemodels.org/posts/2026-10-20-diplomatic-critique-of-ai-slop/
1•sebg•25m ago•0 comments

Fun and useful ideas/mini-projects to build with Claude

https://araujo.zip/blog/things-i-built-with-claude
2•pedrospective•25m ago•0 comments

Musk ordered Starlink slowdown in Ukraine, then blamed it on Trump

https://arstechnica.com/tech-policy/2026/10/report-says-musk-not-trump-ordered-starlink-throttlin...
6•AliCollins•25m ago•0 comments

10 Most Expensive States to Start a Business (2027)

https://www.northwestregisteredagent.com/start-a-business/expensive-states-for-startups
1•hwj•26m ago•0 comments

Practical Compiler Construction, 64-Bit Edition

http://t3x.org/reload64/
4•nils-m-holm•27m ago•0 comments

Amazon identifies Oct 17 PHP2Shell exploitation prior to public disclosure

https://aws.amazon.com/blogs/security/amazon-threat-intelligence-identifies-php2shell-exploitatio...
15•cubefox•27m ago•1 comments

"Flying Tesla is just another Lie" [TopCars TV] [video]

https://www.youtube.com/watch?v=SY6OhPs3ltM
3•Kevin_Flynn•27m ago•0 comments

DrinkR: Estimate your Blood Alcohol Concentration (BAC) (right in the browser)

https://rasmusab.github.io/drinkr/
1•sebg•28m ago•0 comments

The Responsibility of Invention

https://blue-continuum.com/the-responsibility-of-invention
1•dnetesn•28m ago•0 comments

Virtual3D – v1.0.710(Oct 22.26) Released

https://starsigndev.itch.io/virtual3d
1•antonyrobwells•29m ago•0 comments

Hacking attempts as companies, governments rush to patch PHP flaws

https://www.reuters.com/world/asia-pacific/cloudflare-sees-millions-exploit-attempts-after-php-di...
2•TechTechTech•32m ago•0 comments

Did it just build.. a clock?

https://theclock.online/
1•DirkJanMeijer•32m ago•2 comments

Safespace: A Safe Space to Experience Pull Requests

https://github.com/jonocarroll/safespace
1•sebg•34m ago•0 comments