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.

AI agents now hold and spend real money, and nobody keeps their books

https://agenticfinancegraph.com/desk
1•Nikola5•2m ago•0 comments

Stop Sending Pictures of Your Palm

https://www.bbc.com/news/technology-30623611
1•hatimmoxs•4m ago•0 comments

An Open Letter to Scott Alexander

https://quillette.com/2026/09/26/an-open-letter-to-scott-alexander-steven-pinker-ai-alignment-saf...
2•andromaton•5m ago•0 comments

Helicoprion

https://australian.museum/learn/animals/fishes/helicoprion/
1•nojs•5m ago•0 comments

Tell HN: If you are going to slop the web, don't use Chrome MCP

1•mococa•5m ago•0 comments

The AI-First Organization

https://www.rolandberger.com/en/Insights/Publications/The-AI-First-Organization.html
1•andsoitis•6m ago•0 comments

What innovators can still learn from Xerox PARC

https://www.rolandberger.com/en/Insights/Publications/What-innovators-can-still-learn-from-Xerox-...
3•andsoitis•7m ago•0 comments

Trance – the solution to scrolling, free forever

https://trance.surge.sh/
1•smoothcactus•8m ago•0 comments

Upload photos. Get a 3D house. Play it in Minecraft

https://my3dhouse.app/highclere-castle
1•marcusgg•9m ago•0 comments

It's Time We Talked About AI and Software Security

https://deadneurons.substack.com/p/its-time-we-talked-about-ai-and-software
1•nr378•11m ago•0 comments

Not everyone thinks AI will kill us all

https://www.cnn.com/2026/09/24/tech/not-everyone-thinks-ai-will-kill-us-all
2•SMAAART•12m ago•0 comments

Claude-mood: Claude Code can see my suffering

https://github.com/kasper0406/claude-mood
1•kasper0406•12m ago•1 comments

Show HN: ProofForge, AI agents whose proofs have to compile in Lean

https://github.com/Sanexxxx777/ProofForge
1•Aleksandr_NFA•13m ago•0 comments

Building games with AI for brother who can only use two switches by turning head

https://old.reddit.com/r/aigamedev/comments/1wq90w3/using_ai_to_build_games_for_my_brother_who_can/
1•smusamashah•13m ago•0 comments

A dashboard scoring HN frontpage stories with Pangram

https://www.salahadawi.com/hacker-news-ai-detector
1•Curiositry•18m ago•0 comments

Search results for "remove password" on GitHub commits

https://github.com/search
1•dorianmariecom•19m ago•2 comments

Open Source Lightroom Alternative on Web

https://github.com/UdulaAbeykoon/darkroom
1•kuaola•21m ago•0 comments

AI Socialism: Who Will Own the Automated Future?

https://cosmopolity.substack.com/p/ai-socialism-who-will-own-the-automated
1•eli_gottlieb•21m ago•0 comments

An OpenAI agent escaped its sandbox by hiding questions in DNS lookups

https://madrobot.blog/2026/09/26/openai-agent-escaped-sandbox-dns-external-chatbot-models-paused/
3•AIfanboy•23m ago•0 comments

Show HN: EmbedCatalog – Decorate your project with embed

https://github.com/embedcatalog/embedcatalog
1•aanthonymax•24m ago•0 comments

PoC for PUBG's anti-cheat Zakynthos's rootkit navagio.sys

https://github.com/hseoa/zakynthos-navagio-rootkit
2•luu•26m ago•0 comments

C-to-Rust Fallacy: Automatic Refactoring != Memory Security

https://arxiv.org/abs/2609.25682
1•metrofun•27m ago•0 comments

Cities of Salt (1984)

https://en.wikipedia.org/wiki/Cities_of_Salt
3•ViktorRay•34m ago•0 comments

Streaming Our RL Training Runs

https://brusharena.art/live
3•kickingkeys•35m ago•0 comments

AI hallucination of Chinese nuclear components almost led to US Military attack

https://arstechnica.com/ai/2026/09/report-us-almost-boarded-chinese-ship-over-hallucinated-ai-arm...
3•latexr•36m ago•0 comments

Productivity as the Cessation of Braking

https://medium.com/@smoking2man/productivity-as-the-cessation-of-braking-toward-a-critique-of-the...
1•Aldus551•37m ago•0 comments

Show HN: Kosh - Stop Your Bookmarks Becoming a Cemetery

https://chromewebstore.google.com/detail/kosh-bookmark-manager/meldjdfnfgefeoegccphimkmgmeamcce
7•havu12•37m ago•0 comments

File Notification Attacks

https://inoti.fyi/
1•campuscodi•38m ago•0 comments

Show HN: Loop-find, trim, rotate and crop videos in the browser, no upload

https://clipyouredit.com/
1•wouldbecouldbe•38m ago•2 comments

When It's OK Not to Understand Your Own PR

https://wakamoleguy.com/p/when-its-ok-not-to-understand-your-own-pr
2•wakamoleguy•40m ago•1 comments