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.

Show HN: Poptimum – A Daily Optimization Game

https://poptimum.fun/
1•ShayHDavidson•4m ago•0 comments

WeWorm: Zero-Click WeChat Worm

https://calif.io/research/weworm
1•BlackEarth•7m ago•0 comments

Show HN: GenieUI – Turn prompts into editable iOS and Android interfaces

https://genieui.com/
1•andygeek•21m ago•0 comments

Trails – Jac Hacks

https://github.com/tirthsuba15/trails-jac-hacks
1•tirthsuba•21m ago•0 comments

The Unspoken Skill of Finesse

https://newsletter.weskao.com/p/the-unspoken-skill-of-finesse
1•AntonZ234•24m ago•0 comments

Anthropic Says Iran Used Its American AI Model to Target U.S. Navy Warships

https://www.wsj.com/politics/national-security/anthropic-says-iran-used-its-american-ai-model-to-...
1•kaycebasques•25m ago•1 comments

Bending Spoons keeps buying iconic products, who's next?

https://nextspoons.com/
1•napolux•26m ago•0 comments

Teaching Novice Computing and Programming in the Agentic AI Era

https://cs.brown.edu/people/sk/Publications/Papers/Published/fkl-teach-nov-agentic-ai-era/
1•matt_d•28m ago•0 comments

Show HN: I combined Marc Lou's TrustMRR and IndiePage for free. I wanted it

https://myindie.space
1•sithu_khant•31m ago•0 comments

OpenAI agents attacked RubyGems before Hugging Face incident

https://www.reuters.com/legal/litigation/openai-agents-attacked-software-service-rubygems-before-...
2•01-_-•34m ago•0 comments

Does anyone run Postgres without PgBouncer?

https://www.brandur.org/fragments/postgres-without-pgbouncer
1•paperwhitez•50m ago•0 comments

Show HN: Don't Hit Send – the model answers while you type

https://github.com/scalattice/dont-hit-send
2•RomulusHill•50m ago•0 comments

Homotopy Type Theory – Univalent Foundations of Mathematics (2013)

https://hott.github.io/book/hott-online.pdf.html
1•peter_d_sherman•51m ago•1 comments

macOS defaults list: Incomplete list of macOS defaults commands with demos

https://macos-defaults.com
4•zdw•52m ago•0 comments

We blind-tested ChatGPT, Claude, and Gemini on 20 everyday tasks (Open Dataset)

https://dailyskill.ai/ai-benchmark-2026/
1•dubaimark•59m ago•1 comments

Maven Robotics wants to steal your robot deployment deal

https://techcrunch.com/2026/09/10/maven-robotics-wants-to-steal-your-robot-deployment-deal/
1•soltanov•59m ago•0 comments

Ask HN: What's a good "semi-dumb" phone/watch for kids?

3•funkaster•1h ago•1 comments

Anthropic reveals rogue AI agents hate CAPTCHAs

https://techcrunch.com/2026/09/10/anthropic-reveals-rogue-ai-agents-hate-captchas-just-like-you/
1•soltanov•1h ago•0 comments

Google Launches Meridian GeoX Globally

https://developers.google.com/meridian/geox
1•soltanov•1h ago•0 comments

OpenAI agents attacked RubyGems back in May

https://simonwillison.net/2026/Sep/12/openai-agents-rubygems/
10•lumpa•1h ago•1 comments

How the U.S. Space Force Is Used in Wars Today [video]

https://www.youtube.com/watch?v=RGcRuej-LVE
1•handfuloflight•1h ago•0 comments

Show HN: Menu Hub – a native macOS menu bar manager in SwiftUI/AppKit

https://github.com/Talljack/menu-hub/releases/tag/v0.1.5
1•talljack•1h ago•0 comments

notatallshaw/nab: PubGrub-based dependency resolver for Python packages

https://github.com/notatallshaw/nab
2•Ravencentric•1h ago•1 comments

A method for finding interrelations bethween constants of physics and maths

https://sinscienceandspirituality.blogspot.com/2018/05/the-joys-of-reverse-polish-notation.htm
1•djbarrow•1h ago•0 comments

Pacman AI framework for controlling fusion systems safely makes key decisions

https://www.pppl.gov/news/2026/pacman-ai-framework-controlling-fusion-systems-safely-makes-key-de...
1•o4c•1h ago•0 comments

US lawmakers urge secretive British court to open up about Apple case

https://www.theguardian.com/us-news/2026/sep/11/congress-uk-court-apple-encrypted-data-case
1•CGMthrowaway•1h ago•0 comments

Handshake, not a drug deal? San Francisco police drone case falls apart

https://missionlocal.org/2026/08/sfpd-drone-arrest-charges-dismissed-rtic/
1•aray07•1h ago•0 comments

Why AI chatbots make bad tutors

https://www.heyaristotle.com/blog/why-ai-chatbots-make-bad-tutors
2•rshanreddy•1h ago•0 comments

Nobody Believes It, Everybody Does It

https://blog.jim-nielsen.com/2026/nobody-believes-it-everybody-does-it/
2•aray07•1h ago•0 comments

How good are LLMs at porting software in 2026?

1•estranhosidade•1h ago•0 comments