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.

Built a site that teaches investing using the live market as the examples

https://www.stocksightfinance.com
1•kshitik•15s ago•0 comments

I let Claude review the C code I wrote as a math intern in 2013

https://mitsudomoe.github.io/Kinetic-Solver/
1•MathLab•1m ago•1 comments

Ole Bielfeldt: Finding the Extraordinary in Everyday Objects

https://www.nikonsmallworld.com/masters-of-microscopy/ole-bielfeldt
1•smusamashah•2m ago•0 comments

Show HN: One REST endpoint to filter 80+ financial datasets

https://financialdata.net/universal-query
1•_FDN_•3m ago•0 comments

Max is now source available and open to everyone

https://www.modular.com/blog/max-license
1•lairv•5m ago•0 comments

Ask HN: Secure minimalistic web front-ends to Local LLM's?

1•Bender•5m ago•0 comments

Nvidia Sentry: Secure AI Agents at Runtime

https://developer.nvidia.com/blog/inside-nvidia-sentry-secure-ai-agents-at-runtime/
1•hasheddan•5m ago•0 comments

Judgment Becomes the Job

https://twitter.com/ahatamiz1/status/2113344049784799378
1•pretext•6m ago•0 comments

How to Unclench

https://howtounclench.com/
1•surprisetalk•7m ago•0 comments

Superhuman Hardware Design Is the Easy Part

https://www.a16z.news/p/superhuman-hardware-design-is-the
1•gmays•8m ago•0 comments

Bolsonarism has formed its own digital party, says Marcos Nobre

https://jornal.unicamp.br/en/noticias/2026/06/26/bolsonarismo-constituiu-seu-partido-digital-afir...
1•cosmophany•8m ago•1 comments

AI Article Reviews Dominate Human Peer Reviews at Their Best [pdf]

https://gking.harvard.edu/files/peerless.pdf
1•mpweiher•9m ago•0 comments

I Built an AI Bot to Fact-Check the Midterms. Here's What I've Learned

https://agentsofinfluence.substack.com/p/i-built-an-ai-bot-to-fact-check-the
2•laurex•12m ago•0 comments

Artifact Arena: 'Making' is the measure of intelligence

https://artifactarena.ai
1•tbruckner•13m ago•0 comments

Ask HN: Is the downside of investing in AI real?

2•okzgn•13m ago•0 comments

Pentagon grants DHS permission to test heat ray weapon for use at border

https://www.cnn.com/2026/10/21/politics/heat-ray-weapon-dhs-pentagon
1•bushwart•14m ago•0 comments

Trust Stores Are Dependencies Too

https://nesbitt.io/2026/10/21/trust-stores-are-dependencies-too.html
1•keks0r•15m ago•0 comments

eMudhra ignored Mozilla Root investigation deadline; blames social media

https://bugzilla.mozilla.org/show_bug.cgi?id=2083449
2•IcePenguin•15m ago•2 comments

Officials confirm flesh-eating New World screwworm parasite found in US wildlife

https://www.theguardian.com/us-news/2026/oct/21/new-world-screwworm-texas
1•thunderbong•16m ago•0 comments

Hex Map 5.7 – Set Terrain Type Burst Job

https://catlikecoding.com/unity/hex-map/5-7/
1•ibobev•16m ago•0 comments

Trailing SOTA Is a Feature for Profit Maximisation Under Compute Constraints

https://twitter.com/jenzhuscott/status/2113108957355229513
2•ibobev•17m ago•0 comments

Postgres 19 is late, and it's AI's fault

https://neon.com/blog/postgres-19-is-late-and-its-ais-fault
1•nikita•18m ago•0 comments

First-of-Its-Kind Vaccine Ushers in New Hope for Cancer Patients

https://www.nytimes.com/2026/10/23/well/cancer-vaccine-melanoma-study.html
2•gumby•19m ago•0 comments

Tell HN: Unbounce Security Incident

2•coderintherye•19m ago•0 comments

New discoveries, old knowledge: AI finds connections humans missed

https://gavinray97.github.io/blog/undiscovered-public-knowledge
1•gavinray•19m ago•0 comments

MemCurrent: Designing Persistent Memory for Production Agents

https://www.databricks.com/blog/memcurrent-designing-persistent-memory-production-agents
1•gmays•20m ago•0 comments

When the Term "Heatwave" Is No Longer Enough

https://coveringclimatenow.org/from-us-story/when-the-term-heatwave-is-no-longer-enough/
4•robtherobber•20m ago•0 comments

An alignment assessment of the UK AISI cybertesting incident

https://www.anthropic.com/research/alignment-assessment-ukaisi
1•olwmc•22m ago•1 comments

PGSimCity Turns PostgreSQL Complexity into a Virtual City 3D Simulation

https://www.infoq.com/news/2026/08/pgsimcity/
1•woliveirajr•22m ago•0 comments

MemoryTax: The Bitter Lesson of Agent Memory

https://arxiv.org/abs/2610.29823
1•netsroht•22m ago•0 comments