frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•7mo 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•7mo 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•7mo 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 R.e.s.i.s.t.o.r.s

https://www.resistors.org/index.php/Main_Page
1•geox•34s ago•0 comments

Eclipse IDE 2025-12 Released

https://eclipseide.org/release/noteworthy/
1•birdculture•57s ago•0 comments

Baumol's Cost Disease

https://en.wikipedia.org/wiki/Baumol_effect
1•drra•1m ago•0 comments

Pg_AI_query v0.1.0 – First stable release with multi-model AI for PostgreSQL

https://www.postgresql.org/about/news/pg_ai_query-v010-first-stable-release-with-multi-model-ai-f...
1•duyet•2m ago•0 comments

Fluent: A Localization System for Natural-Sounding Translations

https://projectfluent.org/
1•stefankuehnel•4m ago•0 comments

Code for mistral vibe – Mistral's open-source CLI coding assistant

https://github.com/mistralai/mistral-vibe
1•oli5679•6m ago•0 comments

"THE WORLD OF OCR" IBM Promo Film

https://www.youtube.com/watch?v=SekWFCZVLUk
1•indolering•7m ago•0 comments

2025: The Year Cybersecurity Crossed the AI Rubicon

https://www.govtech.com/blogs/lohrmann-on-cybersecurity/2025-the-year-cybersecurity-crossed-the-a...
1•journey2s•17m ago•0 comments

The Gorman Paradox: Where Are All the AI-Generated Apps?

https://codemanship.wordpress.com/2025/12/14/the-gorman-paradox-where-are-all-the-ai-generated-apps/
3•ArmageddonIt•17m ago•3 comments

Docling - Get your documents ready for gen AI

https://github.com/docling-project/docling
1•saikatsg•17m ago•0 comments

Show HN: aero.zip - I over-engineered a file transfer service (E2EE, not P2P)

https://aero.zip
1•pypt•18m ago•0 comments

AI agent hacks university network, outperforms human experts in 16 hours

https://www.businessinsider.com/ai-agent-hacker-stanford-study-outperform-human-artemis-2025-12
1•giuliomagnifico•20m ago•0 comments

Europeans' health data sold to US firm run by ex-Israeli spies

https://www.ftm.eu/articles/europe-health-data-us-firm-israel-spies
28•Fnoord•21m ago•3 comments

Idea: Using AI as a pre-processor to improve traditional TT

1•phr4ts•22m ago•0 comments

Ask HN: Can a two-phase tariff accelerate renewable deployment?

1•NiceWayToDoIT•25m ago•0 comments

Show HN: A unified interface to ask TOP Premium AI Tool side-by-side

https://modelxpert.com/
1•airohitkushwaha•27m ago•0 comments

Efficient Basic Coding for the ZX Spectrum

https://blog.jafma.net/2020/02/24/efficient-basic-coding-for-the-zx-spectrum/
1•rcarmo•31m ago•0 comments

Automate your lead gen and outbound on social with LeadSynth AI

https://www.leadsynthai.app/
1•datamine007•37m ago•1 comments

Nvidia executive Debora Shoquist sells $14.7M worth of NVDA stock

https://www.sec.gov/Archives/edgar/data/1045810/000128385425000009/xslF345X05/wk-form4_1765410571...
4•jadelcastillo•45m ago•1 comments

Sakoku

https://en.wikipedia.org/wiki/Sakoku
1•thunderbong•46m ago•0 comments

Hints of a New Particle Beyond the Standard Model

https://darkmatter.website/article/hints-of-a-new-particle-beyond-the-standard-model/
1•darkmatternews•48m ago•0 comments

Vibevoice-Rs – Pure Rust Text-To Speech

https://github.com/danielclough/vibevoice-rs
1•teadaniel•52m ago•1 comments

Android Developer Verification

https://developer.android.com/developer-verification/guides/android-developer-console
2•Tigress8780•56m ago•0 comments

Show HN: Vanilla, a record player inspired macOS app built with Gemini 3

https://github.com/baddagger/vanilla
1•apoll•1h ago•0 comments

Ask HN: What email providers don't recycle email addresses?

1•supermatt•1h ago•0 comments

Show HN: Dnsaudit.io – A Free Advanced DNS Security Scanner for Real-World Risks

https://dnsaudit.io
2•shakauy•1h ago•0 comments

The future of long-term data storage is clear and will last 14B years

https://www.theregister.com/2025/12/14/sphotonix_moves_5d_memory_crystal/
2•socratics•1h ago•0 comments

Gajim 2.4.1 has been released – GTK XMPP/Jabber Chat Client – Communication

https://gajim.org/posts/2025-12-13-gajim-2.4.1-released/
2•neustradamus•1h ago•0 comments

Show HN: A local-first memory store for LLM agents (SQLite)

https://github.com/CaviraOSS/OpenMemory
1•nullure•1h ago•0 comments

'Holy crap. The end of me: ex-Google CEO Eric Schmidt on AI doing coding jobs

https://timesofindia.indiatimes.com/technology/tech-news/holy-crap-the-end-of-me-says-ex-google-c...
2•ashishgupta2209•1h ago•0 comments