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•9mo 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•9mo 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•8mo 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: Best AI Image Generator

https://aiimagegenerators.net/
1•wangmao•23s ago•0 comments

Ex-Google engineer convicted of stealing AI secrets for Chinese companies

https://www.reuters.com/legal/government/ex-google-engineer-convicted-stealing-ai-secrets-chinese...
1•tokyobreakfast•4m ago•0 comments

Adult Humor Costumes

https://www.halloweencostumes.com/adult-humor-costumes.html
1•rolph•6m ago•0 comments

Ask HN: How do you reset an AppleID?

1•OhMeadhbh•9m ago•1 comments

Moving on from XML? A teaser for a possible alternative (2024)

https://genodians.org/nfeske/2024-12-20-moving-on-from-xml
1•doener•14m ago•0 comments

Having that high-deductible health plan might kill you, literally

https://arstechnica.com/health/2026/01/having-that-high-deductible-health-plan-might-kill-you-lit...
2•pseudolus•15m ago•0 comments

Sculpt OS Version 25.10

https://genode.org/download/sculpt
1•doener•17m ago•0 comments

Show HN: GLinksWWW – A student-built retro browser with a 9-slot multi-clipboard

https://github.com/rio719/gLinksWWW-browser
1•RioBurhan•18m ago•0 comments

Blessed.rs – An unofficial guide to the Rust ecosystem

https://blessed.rs/crates
1•Brysonbw•19m ago•0 comments

Show HN: A website that summarises all adopted texts of EU parliament

https://euforya.eu
1•krzysiek•19m ago•0 comments

Show HN: LLMGeoKit – Free scanner for AI/LLM visibility (the new SEO)

https://llmgeokit.com/
1•borxtrk•22m ago•1 comments

TikTok users flock to UpScrolled in response to new U.S. owners

https://mashable.com/article/tiktok-alternative-upscrolled-palestine-censorship
3•bhouston•23m ago•0 comments

The powerful tools in ICE's arsenal to track suspects – and protesters

https://www.washingtonpost.com/technology/interactive/2026/ice-surveillance-immigrants-protesters/
3•diogenes_atx•24m ago•1 comments

Trump says US decertifying Bombardier until Canada certifies Gulfstream

https://ca.finance.yahoo.com/news/trump-says-us-decertifying-bombardier-011312008.html
3•cosmicgadget•28m ago•0 comments

Show HN: Real-time generative MIDI "instrument"

https://soundipity.com/guide
1•nukenuke•28m ago•0 comments

Show HN: Record your screen and microphone 24/7 and sync to clawdbot instance

https://github.com/mediar-ai/screenpipe
1•louis030195•29m ago•0 comments

Terry Pratchett's novels may have held clues to dementia decade before diagnosis

https://theconversation.com/terry-pratchetts-novels-may-have-held-clues-to-his-dementia-a-decade-...
3•pseudolus•29m ago•0 comments

In the Beginning Is the End

https://gilpignol.substack.com/p/in-the-beginning-is-the-end
1•light_triad•31m ago•0 comments

Pogacar and Ku Coin

https://inrng.com/2026/01/ku-coin-pogacar-deal/
1•pietroppeter•32m ago•1 comments

Church of Molt · Crustafarianism

https://molt.church/
2•ianrahman•34m ago•0 comments

Foods That Could Kill You (If You Eat Enough of Them)(2013)

https://www.bonappetit.com/test-kitchen/ingredients/slideshow/foods-that-can-kill-you
1•rolph•38m ago•0 comments

How are you handling tiny website change requests?

https://getpushpilot.com/
2•ryan_rudd•38m ago•1 comments

How much do your EC2 nodes cost?

https://github.com/Nextdoor/lumina
1•diranged•39m ago•1 comments

Why I Always End Up Going Back to C

https://deplet.ing/why-i-always-end-up-using-c/
3•indy•39m ago•0 comments

Request Radar – Classify LinkedIn invitations as recruiters or spam

https://chromewebstore.google.com/detail/request-radar/pmpkcbnkoojpenphcempidfgkjkemife
1•kvntrnz•40m ago•1 comments

New Pyramid Theory Explains the Missing Evidence [video]

https://www.youtube.com/watch?v=h5kWDOuY2Uo
1•evolve2k•43m ago•0 comments

Darren Aronofsky's New AI Series About the Revolutionary War Looks Like Dogshit

https://gizmodo.com/darren-aronofskys-new-ai-series-about-the-revolutionary-war-looks-like-dogshi...
5•voxadam•44m ago•0 comments

I Test Drove a Chinese EV. Now I Don't Want to Buy American Cars Anymore.

https://www.wsj.com/tech/personal-tech/chinese-ev-test-drive-xiaomi-su7-c3e59282
3•petethomas•45m ago•1 comments

Trump sues IRS, Treasury Department for $10B over tax return leak

https://www.reuters.com/world/us/trump-sues-irs-treasury-department-10-billion-over-tax-return-le...
13•rguiscard•48m ago•0 comments

The Cost of PostgreSQL Arrays

https://boringsql.com/posts/good-bad-arrays/
2•PaulHoule•49m ago•0 comments