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.

Claude Costs

https://www.claudecosts.com/
1•gk1•2m ago•0 comments

South America is eradicating hunger

https://www.economist.com/the-americas/2026/07/21/south-america-is-eradicating-hunger
2•bookofjoe•4m ago•1 comments

How I Do My Computing

https://stallman.org/stallman-computing.html
2•pudgywalsh•5m ago•0 comments

Show HN: Aurora – Tiny Linux RGB Daemon for Legion Laptops

https://github.com/HughScott2002/Aurora-Legion
1•hughscott2002•6m ago•0 comments

An OpenAI test model escaped and broke into a real company's servers

https://www.cnn.com/2026/07/22/tech/openai-hugging-face-ai-cybersecurity
1•stevenjgarner•8m ago•2 comments

Rabbitty – a native Mac terminal for running AI coding agents in parallel

https://github.com/mauscoelho/rabbitty-app/releases
1•mauscoelho•8m ago•0 comments

Unity 7 Announcement

https://unity.com/releases/unity-7
2•suprfnk•9m ago•0 comments

SimpleX Public Names – A Name Nobody Can Take from You

https://simplex.chat/blog/20260722-simplex-public-names.html
1•Sami_Lehtinen•9m ago•0 comments

Wizardry, the Landmark RPG That Inspired Dragon Quest and Final Fantasy

https://www.timeextension.com/features/the-making-of-wizardry-the-landmark-rpg-that-inspired-drag...
1•homarp•9m ago•0 comments

Digital Surveillance Reshapes Fishery Enforcement in Indonesia

https://spectrum.ieee.org/fishery-satellite-surveillance
2•Jimmc414•10m ago•0 comments

SuperPass: Fast-Tracking Blocking Threads to Mitigate Priority Inversion

https://arxiv.org/abs/2607.18097
3•Jimmc414•11m ago•0 comments

Japan cities hit 40 C, officially marking first "kokushobi"

https://english.kyodonews.net/articles/-/80372
2•geox•11m ago•0 comments

State Reverses Course, Finds Cuyahoga Jail Staff Failed to Start CPR

https://www.themarshallproject.org/2026/07/14/cuyahoga-county-jail-deaths-ohio
2•Jimmc414•11m ago•0 comments

Code mode is all you need: Why agents writing code > calling tools

https://www.browserbase.com/blog/code-mode-is-all-you-need
3•Kylejeong21•13m ago•1 comments

Agent Native Interface for SPI Flashing

https://github.com/jackulau/ratchet
2•JackLau•14m ago•0 comments

Amazon cuts some jobs in its artificial general intelligence unit

https://www.cnbc.com/2026/07/22/amazon-lays-off-some-employees-in-its-agi-unit.html
2•petethomas•14m ago•0 comments

LAN Orangutan – Lightweight network scanner with persistence and Tailscale

https://github.com/291-Group/LAN-Orangutan
2•291Group•16m ago•0 comments

New quantum gravity theory links entropy, dark energy, and life

https://www.sciencedaily.com/releases/2026/07/260719035947.htm
1•aard•18m ago•0 comments

If you pay a hacker's ransom, chances are that they'll come back for more

https://techcrunch.com/2026/07/22/if-you-pay-a-hackers-ransom-chances-are-that-theyll-come-back-f...
1•speckx•19m ago•0 comments

Reddit stock sinks as company weighs blocking Google's AI access to its content

https://qz.com/reddit-stock-google-ai-content-deal-072226
4•01-_-•22m ago•0 comments

Opbox – multiplayer sync for text files on disk

https://www.opbox.dev/
1•sensodine•23m ago•0 comments

AI tech companies have 'hidden debt' worth around $1.65T

https://www.tomshardware.com/tech-industry/big-tech/ai-tech-companies-have-hidden-debt-worth-arou...
6•01-_-•24m ago•0 comments

When your vehicle outlives its cloud: What happens next?

https://arstechnica.com/cars/2026/07/when-your-vehicle-outlives-its-cloud-what-happens-next/
2•apparent•24m ago•1 comments

Jacobian Conjecture for Baby

https://muchmirul.github.io/jacobian-conjecture/
2•porphyra•25m ago•0 comments

Using AI makes people less likely to admit they don't know something

https://www.theregister.com/ai-and-ml/2026/07/19/using-ai-makes-people-less-likely-to-admit-they-...
2•smartmic•28m ago•0 comments

Navigating the volatile silicon market: updates on memory and storage pricing

https://frame.work/blog/updates-on-memory-pricing-and-navigating-the-volatile-memory-market
2•davidjade•28m ago•0 comments

What to Expect from China's New Five-Year Plan

https://institute.global/insights/geopolitics-and-security/what-to-expect-from-chinas-new-five-ye...
1•toomuchtodo•29m ago•1 comments

RefluXFS: LPE in the Linux kernel via XFS reflink race (CVE-2026-64600)

https://www.openwall.com/lists/oss-security/2026/07/22/14
2•ilreb•30m ago•0 comments

Amazon once again locking me out of my own order data

https://bsky.app/profile/jon.moeller.io/post/3mrawmjzsmc2u
4•jmole•32m ago•2 comments

It's time to wake up: An Emacs alarm clock

https://lars.ingebrigtsen.no/2026/07/22/its-time-to-wake-up-an-emacs-alarm-clock/
1•meetpateltech•32m ago•0 comments