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 Collaboration Layer for AI Intelligence

https://gitix.ai/
1•azolf•1m ago•0 comments

Are You Recommended by AI?

https://www.mentionedby.world/
1•aykhanstoic•3m ago•0 comments

Show HN: Import the HN Home to a reading queue with clean reader view and TL;DR

https://readplace.com/import?mode=from-url
2•fagnerbrack•7m ago•1 comments

Reimagining Systems Thinking as Cybersystemic Researching

https://stream.syscoi.com/2025/12/01/reimagining-systems-thinking-as-cybersystemic-researching-an...
2•andsoitis•7m ago•0 comments

Grok 4.5, based on our 1.5T V9 foundation model, with Cursor data added in su

https://twitter.com/elonmusk/status/2071184354756477041
3•cyrc•11m ago•0 comments

The shift from browsing to commanding: Autonomous web agents in action

https://www.fognitix.com/
2•fognitix•11m ago•2 comments

Five Months in Munich: Revisiting '91 Without Erasing Decades That Made It Scale

https://akmaier.substack.com/p/five-months-in-munich-revisiting
2•felixbraun•12m ago•0 comments

Was Ozempic discovered thanks to "silly" research?

https://www.oscillator.blog/p/was-ozempic-discovered-thanks-to
3•salonium_•12m ago•0 comments

The vibration of the pager has a sound all its own

https://www.notyouremergency.com/triage-intro
2•mooreds•12m ago•0 comments

32BJ Health Fund and Northwell Direct announce direct health care contract

https://www.northwell.edu/news/the-latest/northwell-direct-32bj-largest-direct-health-care-contra...
2•mooreds•12m ago•0 comments

How should founders choose the right tech stack for a startup website?

https://moonsofts.net/
2•MoonSofts•14m ago•0 comments

America's largest companies have no simple way to report security flaws

https://this.weekinsecurity.com/dozens-of-americas-largest-companies-have-no-simple-way-to-report...
2•mooreds•14m ago•0 comments

Installing SerenityOS on My Old ThinkPad T60

https://btxx.org/posts/serenity-t60/
3•jandeboevrie•14m ago•0 comments

Forensic tools as instruments of repression: Cellebrite use in Russia

https://andreafortuna.org/2026/06/28/cellebrite-russia-pivovarov/
2•iamnothere•15m ago•0 comments

"Quality is downstream from caring"

https://graybeard.ing/quality-is-downstream-from-caring/
2•rglover•15m ago•0 comments

Bjorn Lomborg – 'An Inconvenient Truth' 20 Years Later

https://signalscv.com/2026/06/bjorn-lomborg-an-inconvenient-truth-20-years-later/
2•RickJWagner•15m ago•1 comments

CATL online store for direct sales of energy storage to small/medium customers

https://carnewschina.com/2026/06/26/catl-launches-online-store-for-direct-sales-of-energy-storage...
2•DamonHD•16m ago•0 comments

Ask HN: Is Hacker News selling your email?

3•tyleo•18m ago•2 comments

Clarity, Accountability, and Care – The Three Conditions That Make Teams Work

https://nmcqueen.substack.com/p/clarity-accountability-and-care
2•backlit4034•21m ago•0 comments

Cachebox, a small cache server with TTLs, dogpile locks, tags and bounded memory

https://github.com/smarzola/cachebox
2•smarzola•24m ago•0 comments

California's landmark anti-plastics law sparks anger as 17 states move to sue

https://www.theguardian.com/environment/2026/jun/26/california-single-use-plastic-law
4•andsoitis•24m ago•0 comments

Show HN: A REPL for browsers that agents love

https://fuckui.com
2•keepamovin•25m ago•1 comments

The dordolec, the 'evil eye' and superstition in Albania

https://michaelharrison.org.uk/2013/05/the-dordolec-the-evil-eye-and-superstition-in-albania/
2•jruohonen•26m ago•0 comments

The Fake Pilot (2010)

https://www.news.com.au/travel/travel-updates/fake-pilot-thomas-salme-says-passengers-were-never-...
3•redbell•27m ago•0 comments

The making of the digital twin of the Panorama of the Battle of Murten

https://www.epfl.ch/labs/emplus/projects/terapixelpanorama/murten-panorama-digital-twin-scanning-...
3•ano-ther•27m ago•0 comments

GPT-5.6: The System Card

https://thezvi.substack.com/p/gpt-56-the-system-card
2•7777777phil•27m ago•0 comments

City counsellors under fire for AI Orange Line map [video]

https://www.youtube.com/watch?v=MmLikQaka8E
2•functionmouse•28m ago•0 comments

'Crypto vs. community': local US lenders join forces to fight 'stablecoins' law

https://www.theguardian.com/technology/2026/jun/28/crypto-v-community-local-lenders-fight-stablec...
2•biorach•29m ago•0 comments

Clean GitHub repo tricks AI coding agents into running malware

https://www.bleepingcomputer.com/news/security/clean-github-repo-tricks-ai-coding-agents-into-run...
2•Brajeshwar•31m ago•0 comments

What is your most fascinating tech used in Formula1(F1)?

2•adithyaharish•32m ago•0 comments