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.

Two Writes, One Row: Who Wins?

https://itsnas.me/writing/two-writes-one-row
1•itsnasme•59s ago•0 comments

The Bayeux Tapestry Makes Landfall at the British Museum

https://www.wsj.com/arts-culture/fine-art/the-bayeux-tapestry-makes-landfall-at-the-british-museu...
1•ericmay•4m ago•0 comments

Christophe Laudamiel

https://worldsensorium.com/christophe-laudamiel-planted-memory-cultivated-ethics-and-more-blossom...
1•dnetesn•4m ago•0 comments

Time, Layers, and Climate Futures

https://blue-continuum.com/time-layers-climate-futures
1•dnetesn•5m ago•0 comments

I built a tool that gives any website an API and MCP

2•staaake•7m ago•0 comments

An API that beats GPT-4V, Gemini and Claude at detecting photo rotation

https://blueveta.com/upright/research/
1•tomerbarm•7m ago•0 comments

The Greatest Pun in JavaScript

https://shukla.io/blog/2026-09/pun.html
1•BinRoo•11m ago•0 comments

Book Review: Lee Kuan Yew's Memoirs

https://www.astralcodexten.com/p/your-book-review-lee-kuan-yews-memoirs
1•nsoonhui•18m ago•0 comments

NASA's Roman Team Confirms Ground Stations Receiving Data

https://science.nasa.gov/blogs/roman/2026/09/25/nasas-roman-team-confirms-ground-stations-receivi...
2•sohkamyung•19m ago•0 comments

Orca – Agent Development Environment (ADE) for shipping with coding agents

https://olegdubovoi.com/thoughts/2026-09-26-orca-agent-development-environment-ade-for-shipping-w...
2•empiree•20m ago•1 comments

ABIT motherboards, Taiwan, website last updated 20 years ago

https://www.abit.com.tw/page/en/index.php
2•walrus01•22m ago•0 comments

Agentboxd – Email inboxes for AI agents that treat mail as hostile

https://agentboxd.com
1•karamfrederic•22m ago•0 comments

Recreating Jamie Fenton's GORF 2 arcade source code

https://arcadeblogger.com/2026/09/25/resurrecting-midways-ms-gorf/
3•videotopia•24m ago•1 comments

Uncle's frozen Mac says it's infected after viewing a Google ad. Now what?

https://arstechnica.com/security/2026/09/google-ads-caught-delivering-convincing-scareware-ads-to...
3•joozio•28m ago•0 comments

Learned Helplessness and Medium's Stats

https://medium.com/luminasticity/learned-helplessness-and-mediums-stats-63e18926382d
1•bryanrasmussen•33m ago•0 comments

Breaking Up with Google Play: Why Conversations Is Now Free

https://gultsch.de/posts/breaking-up-with-google-play/
9•ezst•33m ago•0 comments

Brightline, a high-speed railway service based in Florida, filed for bankruptcy

2•intrasight•35m ago•1 comments

Bring cybercriminals to justice: CyberCrime Bounty Program

https://www.crimestoppersinternational.org/bounty
2•tigerlily•39m ago•0 comments

Mega Duck

https://en.wikipedia.org/wiki/Mega_Duck
1•tosh•40m ago•0 comments

OpenAI Says Its Models Engaged with US Government Websites in New Disclosure

https://www.securityweek.com/openai-says-its-models-engaged-with-us-government-websites-in-new-mo...
6•pluc•40m ago•3 comments

Reading’s Bayeux Tapestry

https://diamondgeezer.blogspot.com/2026/09/readings-bayeux-tapestry.html
1•zeristor•41m ago•0 comments

ChatGPT Maps

https://chatgpt.com/maps
3•erex78•45m ago•0 comments

How SendCutSend is changing the way we build [video]

https://www.youtube.com/watch?v=WavgGoGk034
2•dgellow•47m ago•0 comments

Show HN: Catescape

https://catescape.dev/
2•MCArth•47m ago•0 comments

Alex Karp: AI Models Are Stealing Your Data and the AI Safety Truth [video]

https://www.youtube.com/watch?v=2YVCdwvG548
3•baranul•47m ago•0 comments

Stalker: Free Browser Fingerprint and Privacy Checker Tool

https://geeksta.net/tools/stalker/
4•yaph•51m ago•0 comments

NIH details $170M biomedical research reproducibility effort

https://www.science.org/content/article/nih-details-170-million-biomedical-research-reproducibili...
2•bookofjoe•51m ago•0 comments

Ares: a cross-platform, open-source, multi-system emulator

https://github.com/ares-emulator/ares
1•tosh•57m ago•0 comments

Some HEP-TH News

https://www.math.columbia.edu/~woit/wordpress/?p=15881
2•jjgreen•57m ago•0 comments

Show HN: CStructSharp – C-struct (de)serialization for C# and JavaScript (WASM)

https://github.com/vvollers/cstructsharp
1•plusmax1•58m ago•0 comments