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.

AI Coding Skill That May Make Your Coding Sessions 44% More Productive

https://vmysla.substack.com/p/ai-coding-skill-that-may-cut-your-ai-coding-costs-by-30-45-percent
1•vmysla•1m ago•0 comments

Best Composio Alternatives for MCP Gateway

https://www.arcade.dev/blog/composio-alternatives/
1•manveerc•1m ago•0 comments

Vector thinking for Max Profit (2022)

https://iabdb.me/2022/01/17/vector-thinking-for-max-profit/
1•tosh•4m ago•0 comments

UC to consider reinstating SAT after faculty say students are deficient in math

https://www.latimes.com/california/story/2026-06-11/uc-sat-act-test-requirement-admissions-recons...
1•apparent•4m ago•0 comments

Cheap Reward Hacking Detection

https://arxiv.org/abs/2606.08893
1•steven_pareto•6m ago•0 comments

Working in Glass

https://www.asimov.press/p/glass
1•bookofjoe•7m ago•0 comments

Poland to jail online streamers of violent crimes and cruelty for up to 5 years

https://www.reuters.com/business/media-telecom/poland-jail-online-streamers-violent-crime-rape-cr...
2•1659447091•8m ago•0 comments

Fudgetown, USA (2024)

https://tastecooking.com/fudgetown-usa/
1•NaOH•8m ago•0 comments

The World Cup Paradox

https://www.economist.com/leaders/2026/06/10/the-world-cup-paradox
1•andsoitis•9m ago•0 comments

Show HN: OSBal – An Open Source, Ultra Lightweight GUI for HAProxy and Stunnel

https://chrissiefken.github.io/osbal/
1•swiil•9m ago•0 comments

fragment.tools: modern toolkit for creative coding

https://fragment.tools/
1•guidoschmidt•9m ago•0 comments

Show HN: Praxis – AWS infrastructure automation, without the complexity

https://github.com/shirvan/praxis
1•shirvan•11m ago•0 comments

Controversial oil lease sale in Alaska wildlife refuge draws limited interest

https://alaskabeacon.com/2026/06/05/controversial-oil-lease-sale-in-alaska-wildlife-refuge-draws-...
1•gmays•11m ago•0 comments

Show HN: AVP – an agent can't leak a secret it never had

https://github.com/inflightsec/agent-vault-proxy
1•radku•12m ago•0 comments

OpenAI could go from AI pioneer to AI's BlackBerry, says Forrester

https://www.theregister.com/ai-and-ml/2026/06/11/openai-could-go-from-ai-pioneer-to-ais-blackberr...
4•Bender•13m ago•0 comments

Does it feel like your predictive text is losing it?

https://www.rnz.co.nz/life/lifestyle/does-it-feel-like-your-predictive-text-is-losing-it
4•billybuckwheat•13m ago•0 comments

Met Police joins forces with Apple to choke London's stolen phone trade

https://www.theregister.com/personal-tech/2026/06/11/met-police-joins-forces-with-apple-to-choke-...
1•Bender•13m ago•0 comments

Lyft, Uber sue New York City to block driver retention law

https://www.reuters.com/legal/government/lyft-uber-sue-new-york-city-block-driver-retention-law-2...
1•nickvec•13m ago•1 comments

Oracle's AI datacenter splurge gives investors the capex jitters

https://www.theregister.com/paas-and-iaas/2026/06/11/oracles-ai-datacenter-splurge-gives-investor...
2•Bender•14m ago•0 comments

DiffusionGemma

https://deepmind.google/models/gemma/diffusiongemma/
2•tomas789•15m ago•0 comments

Canada Post announces 485,000 more addresses to lose home delivery

https://www.cbc.ca/news/politics/canada-post-door-to-door-delivery-addresses-june-9.7231990
2•amichail•16m ago•0 comments

Conquering Recursion (2019)

https://vector.org.uk/conquering-recursion/
1•tosh•16m ago•0 comments

Show HN: Turbokod – A Retro IDE

https://boxed.github.io/TurboKod/
1•boxed•16m ago•1 comments

Darkbloom Goes Live on OpenRouter

https://xcancel.com/gajesh/status/2065138104022061505
1•doener•17m ago•0 comments

Reading the Brain Without Opening the Skull – Tom Oxley, Synchron [video]

https://www.youtube.com/watch?v=0gvHqRv8gTg
1•turizzmo•18m ago•0 comments

Show HN: Bullstudio v2 – open-source BullMQ dashboard

https://github.com/emirce/bullstudio
1•emirce•19m ago•0 comments

How I made a 60fps eInk Monitor, the Modos Flow

https://www.youtube.com/watch?v=nHbA2-_qzH4
3•FraI3mega•19m ago•0 comments

RawTree

https://rawtree.com/blog/introducing-rawtree
2•adastral•22m ago•0 comments

DeityDB: Open database of spiritual entities across Western religious traditions

https://github.com/jebboone/deitydb
1•theanonymousone•24m ago•0 comments

Can Postgres Replace Task Queues at Scale?

https://www.dbos.dev/blog/making-postgres-queues-scale
1•KraftyOne•24m ago•0 comments