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•11mo 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•11mo 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•11mo 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: Apfel – The free AI on your Mac

https://apfel.franzai.com
1•franze•48s ago•0 comments

Catching macOS Stealers in the Wild

https://objective-see.org/blog/blog_0x88.html
1•speckx•3m ago•0 comments

Flow – Focus Deeper, Longer

https://play.google.com/store/apps/details?id=com.get.flow_app&hl=en_US
1•K_A_P•7m ago•0 comments

Gemma 4 makes local AI agents practical

https://firethering.com/gemma-4-local-ai-agents/
2•steveharing1•8m ago•0 comments

AI's fluency in other languages hides a Western worldview that can mislead users

https://theconversation.com/ais-fluency-in-other-languages-hides-a-western-worldview-that-can-mis...
3•1659447091•13m ago•0 comments

Tried to Buy a Pint, Finding a Trojan: My First Malware Analysis

https://blog.michaelrbparker.com/post/17
1•birdculture•13m ago•0 comments

A database of analog cameras that can be 3D printed

https://printed.analogcamera.space/
1•thomasjb•14m ago•0 comments

Artemis II astronaut finds two Outlook instances running on computers

https://www.tomshardware.com/software/microsoft-office/artemis-ii-astronaut-finds-two-outlook-ins...
1•doener•15m ago•1 comments

Proton Meet Isn't What They Told You It Was

https://www.sambent.com/proton-meet-isnt-what-they-told-you/
2•bundie•16m ago•0 comments

Say No to ZeroVer: Start with 1.0.0

https://blog.nytsoi.net/2026/04/03/say-no-to-zero-ver/
1•thomasjb•20m ago•0 comments

France plans missile increase in new defense push

https://www.politico.eu/article/france-eyes-huge-missile-boost-new-defense-plan-document-shows/
3•vrganj•22m ago•1 comments

Show HN: My portfolio as a working terminal (vanilla JavaScript, one HTML file)

https://dzienko.dev/
2•Brosper•27m ago•1 comments

A Giant Leap Towards an AI-Native OS: AgenticInit (April Fools)

https://os.ewe.moe/blog/202604-april-fool
1•uneven9434•29m ago•0 comments

Life gave us lemon trees

https://nothingisnotafish.substack.com/p/life-gave-us-lemon-trees
1•gaodean•30m ago•0 comments

Agent as User, a new tool to help you run agent in isolated user environment

https://github.com/AgentaaU/AaaU
1•shylockhg•30m ago•1 comments

I Made a Terminal Pager

https://theleo.zone/posts/pager/
2•speckx•33m ago•0 comments

Cute Animal Heroic Interval

https://medium.com/luminasticity/cute-animal-heroic-interval-c38d0dc84d05
1•bryanrasmussen•37m ago•0 comments

OpenHarness: Open Agent Harness

https://github.com/HKUDS/OpenHarness
2•msolujic•37m ago•0 comments

Hardware supply chain attack in the wild

https://airguide.info/europes-easa-warns-stolen-engine-parts-may-re-enter-supply-chain/
2•jackpepsi•38m ago•0 comments

Fathom: AI hallucination detection from SAE activation geometry (pre-registered)

https://zenodo.org/records/19382453
3•fathom_geo•40m ago•0 comments

A CSS Engine in OCaml

https://gazagnaire.org/blog/2026-04-02-cascade.html
4•p4bl0•41m ago•0 comments

Ask HN: Has Claude Code become significantly worse for you as well?

2•bkfh•42m ago•1 comments

US Bans All Foreign-Made Consumer Routers

https://www.schneier.com/blog/archives/2026/04/us-bans-all-foreign-made-consumer-routers.html
4•jruohonen•43m ago•0 comments

A Simple and Universal Swarm Intelligence Engine, Predicting Anything

https://github.com/666ghj/MiroFish
4•amirouche•47m ago•0 comments

Ask HN: How do you avoid or identify a poisoned skill?

2•skillcompass•49m ago•1 comments

A Brief History of the Dust Jacket

https://firstruleofbookclub.com/book-history/a-brief-history-of-the-dust-jacket/
2•jjgreen•53m ago•0 comments

NASA astronauts prove that sending an email is rocket science

https://techcrunch.com/2026/04/02/nasa-artemis-microsoft-outlook-astronauts/
3•ludovicianul•54m ago•0 comments

LipoVive Weight Loss Formula Reviews 2026 – See Real Results

https://www.morningstar.com/news/accesswire/1138075msn/lipovive-reviews-shocking-2026-report-what...
3•hanisatx•55m ago•1 comments

MCP Connectors for Marketers: The 5-Minute Setup

https://aiforcontentmarketing.ai/mcp-connectors-for-marketers-the-5-minute-setup-that-connects-yo...
2•pakostina•58m ago•0 comments

They thought they were downloading Claude Code source

https://www.theregister.com/2026/04/02/trojanized_claude_code_leak_github/
3•jruohonen•58m ago•0 comments