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.

Russia builds up infrastructure near Europe's border to deploy over 100k troops

https://www.pravda.com.ua/eng/news/2026/06/10/8038671/
1•Bender•49s ago•0 comments

From a Single File to an MCP Server: Six Rewrites of My Own Harness

https://pub.towardsai.net/from-a-single-file-to-an-mcp-server-six-rewrites-of-my-own-harness-74b4...
2•tacoda•3m ago•0 comments

Agentifying Agent Assessment for Openness, Standardization, and Reproducibility

https://arxiv.org/abs/2606.13608
1•tcp_handshaker•8m ago•0 comments

Pink Cosmo Blueberries

https://www.baldorfood.com/product/blueberries/be3p-pink-cosmo-blueberries
1•mooreds•9m ago•0 comments

Why Tomatoes Are the Most Expensive They've Been in Four Decades [audio] [video]

https://www.youtube.com/watch?v=pUrIlUAo0kM
1•mooreds•10m ago•0 comments

What Do Engineers Mean When We Say "Taste"?

https://davegriffith.substack.com/p/what-do-engineers-mean-when-we-say
1•mikez302•11m ago•0 comments

Latent learning: episodic memory complements parametric learning

https://openreview.net/forum?id=RuWGeX5ZiB
1•matt_d•12m ago•0 comments

Erdős Problems and Speculations about the Power of AI Models

https://www.youtube.com/watch?v=KbNctTQnVHI
1•maayank•15m ago•0 comments

Show HN: Agent Joe – a Rust only coding agent with no shell access

https://github.com/Kapperchino/agent-joe
1•kapperchino•15m ago•0 comments

I Think They [Anthropic] Are Lying to You [video]

https://www.youtube.com/watch?v=zfYsSFY4l18
4•salutis•16m ago•0 comments

Digg

https://digg.com/tech
1•ahmedfromtunis•16m ago•0 comments

I created a facet search over music composition (no AI)

https://monictheory.com
1•midi_finder•16m ago•1 comments

Ring Holders Club – NBA draft-and-SIM playoff run, plus a daily tactics puzzle

https://www.ringholders.club/
3•pipnonsense•17m ago•0 comments

Stackit – European Hyperscaler and Cloud Provider

https://stackit.com/en
1•tomrod•17m ago•0 comments

For People with Misophonia, Everyday Noises Can Be Agony

https://www.newyorker.com/magazine/2026/06/15/for-people-with-misophonia-everyday-noises-can-be-a...
1•fortran77•19m ago•0 comments

'Crisis averted' as experts confirm universe's expansion is accelerating

https://ras.ac.uk/news-and-press/research-highlights/crisis-averted-experts-confirm-universes-exp...
2•hhs•20m ago•0 comments

Espressif Modules

https://esp32.atomic14.com/modules/
1•iamflimflam1•21m ago•0 comments

N8ao – An efficient and visually pleasing implementation of SSAO

https://github.com/N8python/n8ao
1•modinfo•23m ago•0 comments

The World Computer Has Children

https://hari.computer/the-world-computer-has-children
1•andytratt•29m ago•0 comments

Astrology Is Scientifically Provable

https://astrologerapp.org/free-synastry
1•calamaridude•29m ago•2 comments

Cooling at the Speed of Light

https://cacm.acm.org/news/cooling-at-the-speed-of-light/
2•sohkamyung•29m ago•0 comments

Google's new remote attestation scheme is as terrible as old scheme

https://pluralistic.net/2026/06/12/compelled-speech/
3•healsdata•30m ago•0 comments

Jane Yolen (1939–2026)

https://locusmag.com/2026/06/jane-yolen-1939-2026/
1•sohkamyung•30m ago•0 comments

Ask HN: How are you designing human review for production AI agents?

2•willXare•30m ago•1 comments

Scientists decipher how the nucleus gets its energy

https://heart.arizona.edu/news/power-genome-scientists-decipher-how-nucleus-gets-its-energy
2•hhs•30m ago•0 comments

AMD Stiffs Researcher $10k Bug Bounty

https://www.gadgetreview.com/amd-stiffs-researcher-10000-bug-bounty-after-critical-security-flaw-...
6•worik•31m ago•0 comments

Putin expands military presence on NATO's border

https://www.telegraph.co.uk/world-news/2026/06/11/pictured-putin-expands-military-presence-on-nat...
5•Bender•32m ago•0 comments

AI Doesn't Just Save Time. It Removes the Pauses

https://medium.com/@barhaim/ai-doesnt-just-save-time-it-removes-the-pauses-41c1bdd7e0a1
2•bignet•32m ago•0 comments

MetaLens – open-source image metadata inspector with a free REST API

https://imagemetadataextractor.com/
2•vexelior•32m ago•0 comments

Show HN: Putt.day a daily mini golf game

https://putt.day/
14•ellg•33m ago•3 comments