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.

The SaaSpocalypse Maybe Ending, but SaaS Will Never Be the Same Again

https://www.forbes.com/sites/timkeary/2026/06/30/the-saaspocalypse-maybe-ending-but-saas-will-nev...
1•jruohonen•1m ago•0 comments

Show HN: I built a deterministic check for fabricated quotes in LLM output

https://github.com/pierreolivierbonin/verbatimeter
1•pobonin•2m ago•0 comments

At CERN, AI will drive future discoveries

https://www.swissinfo.ch/eng/research-frontiers/at-cern-ai-will-drive-future-discoveries/91723774
1•giuliomagnifico•4m ago•0 comments

Wonder Window

https://thekidshouldseethis.com/share/
1•smallerize•4m ago•0 comments

Germany set to restrict its Freedom of Information Act

https://www.dw.com/en/germany-freedom-of-information-act/a-77939695
3•robtherobber•6m ago•0 comments

ATProto for Distributed Systems Engineers

https://atproto.com/articles/atproto-for-distsys-engineers
1•typical182•6m ago•0 comments

How to stop Claude from saying load-bearing

https://jola.dev/posts/how-to-stop-claude-from-saying-load-bearing
5•shintoist•10m ago•0 comments

1B-cell multiplayer Minesweeper [Zig]

https://megasweeper.io/
2•nazavtra•11m ago•0 comments

Apophenia – Fable writes Firefall fan fiction

https://phulp.com/apophenia.html
2•binbag•14m ago•0 comments

Mathematics formula found on Maya wall rivals insights of ancient masters

https://www.nature.com/articles/d41586-026-02170-8
2•homarp•15m ago•0 comments

Scientists Calculated When the Last Plants on Earth Will Die

https://www.sciencealert.com/scientists-calculated-when-the-last-plants-on-earth-will-die
3•amichail•16m ago•0 comments

Culture doesn't eat strategy. Incentives do

https://reubs8.substack.com/p/culture-doesnt-eat-strategy-incentives
3•splitbrainhack•21m ago•0 comments

The Definition of Done

https://adi.bio/done
8•AdityaAnand1•22m ago•0 comments

Punch Yourself in the Face with Reality

https://adi.bio/reality
7•AdityaAnand1•22m ago•1 comments

N[act]-it – Constitutional Computation · Streamlit

https://nact-it-demo-bnfzskctcjvs2kcpb8ddfx.streamlit.app
4•Dabulamafu•22m ago•0 comments

Global smartphone shipments in Q2 hit lowest in 13 years on memory chip crunch

https://www.reuters.com/business/media-telecom/global-smartphone-shipments-second-quarter-hit-low...
3•giuliomagnifico•23m ago•0 comments

No Spanish Reading Crisis?

https://www.commonreader.co.uk/p/no-spanish-reading-crisis
3•jruohonen•24m ago•0 comments

Show HN: Tangent – learn the Glove80 ergonomic keyboard by typing HN headlines

https://tangent-trainer.pages.dev
4•mkirsten•25m ago•1 comments

Codex scraped the ICM website and discovered 2026 Fields Medal winner list

https://phemex.com/news/article/2026-fields-medal-winners-list-leaked-includes-two-peking-univers...
9•zaikunzhang•25m ago•0 comments

Indian startup builds motors without permanent magnets

https://www.indiatoday.in/technology/features/story/look-ma-no-magnets-how-an-indian-startup-is-u...
3•hiyer•27m ago•0 comments

Show HN: Running Win32/DirectX games in the browser via x86 emulation and WebGPU

https://bottleship.happydog.games/
5•jenissimo1•30m ago•1 comments

6status: IPv4/v6 dual stack status board

https://forge.sumit.im/djsumdog/6status
3•airhangerf15•31m ago•0 comments

Show HN: Beautiful QR Codes

https://scanwayy.com
17•janpmz•34m ago•10 comments

Codex starts encrypting prompts, uses ciphertext for inference instead

https://github.com/openai/codex/issues/28058
75•embedding-shape•34m ago•32 comments

The ChatGPT "Super App" Sort of Super Sucks

https://spyglass.org/chatgpt-gets-to-work/
4•ig0r0•35m ago•1 comments

Show HN: Planetary Facts – food and product impacts against the planet's limits

https://planetaryfacts.com
2•mikethemerry•36m ago•0 comments

DokuWiki Release 2026-07-14 "Mort"

https://www.dokuwiki.org/changes#release_2026-07-14_mort
2•kossmac•36m ago•0 comments

Real AI for video games (Iconic Games)

https://iconicgames.io/blog/pressure-point/
3•giltho•40m ago•0 comments

You Cannot Defend What You Cannot Inspect

https://www.first.org/blog/20260714-FIRSTCON26-CIRCUIT
2•jruohonen•42m ago•0 comments

The Day WhatsApp Goes Dark

https://xn--gckvb8fzb.com/the-day-whatsapp-goes-dark/
2•mindracer•42m ago•0 comments