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: Prmana – OIDC SSH Login for Linux with DPoP (Rust, Apache 2.0)

https://github.com/prodnull/prmana
1•cbchhaya•58s ago•0 comments

HR 8197 – A Bill to Terminate the All-Domain Anomaly Resolution Office

https://www.congress.gov/bill/119th-congress/house-bill/8197/text?s=1&r=1
1•OhMeadhbh•2m ago•0 comments

Reddit content moderation is broken

https://old.reddit.com/
1•pavas•3m ago•1 comments

Aura – A locally-sovereign cognitive architecture for Apple Silicon

https://github.com/youngbryan97/aura
1•bryanyoung97•4m ago•0 comments

A Dumb Introduction to Z3

https://ar-ms.me/thoughts/a-gentle-introduction-to-z3/
1•y1n0•6m ago•0 comments

Contained Codex Networking

1•orbisvicis•8m ago•0 comments

Developer to Manager

https://matthewquerzoli.com/#/blog/08-10-2025-developer-to-manager
1•Quiza12•8m ago•0 comments

An Explainer of Section 702 of the Foreign Intelligence Surveillance Act

https://www.brennancenter.org/our-work/research-reports/section-702-foreign-intelligence-surveill...
1•Cider9986•9m ago•0 comments

We're Using So Much AI That Computing Firepower Is Running Out

https://www.wsj.com/tech/ai/ai-is-using-so-much-energy-that-computing-firepower-is-running-out-15...
2•1vuio0pswjnm7•9m ago•0 comments

Everyone Has Trump's Phone Number Now

https://www.theatlantic.com/politics/2026/03/trump-phone-number/686370/
2•Cider9986•10m ago•0 comments

Medicine piggybacks onto fat absorption pathways to allow oral delivery

https://medicalxpress.com/news/2026-03-medicine-piggybacks-fat-absorption-pathways.html
2•PaulHoule•11m ago•0 comments

David Wynn Miller

https://en.wikipedia.org/wiki/David_Wynn_Miller
3•thunderbong•14m ago•0 comments

A New Computer Chip Could Withstand the Hellscape of Venus

https://www.sciencealert.com/a-new-computer-chip-could-finally-withstand-the-hellscape-of-venus
1•y1n0•19m ago•0 comments

OpenPanel – Open-Source Web and Product Analytics

https://openpanel.dev/
1•radeeyate•21m ago•0 comments

Show HN: React-native-sightline – floating dev overlay for FPS/memory/re-render

https://github.com/Srikanth-AD/react-native-sightline
2•stackdirector•23m ago•0 comments

Meta spins up AI version of Mark Zuckerberg to engage with employees

https://arstechnica.com/ai/2026/04/meta-spins-up-ai-version-of-mark-zuckerberg-to-engage-with-emp...
3•cratermoon•24m ago•0 comments

AI Agent Stores – Making Shopee Products Findable by ChatGPT and Perplexity

https://www.bbiz.shop/blog
3•kenttuzuu•26m ago•1 comments

DaVinci Resolve releases Photo Editor

https://www.blackmagicdesign.com/products/davinciresolve/photo
2•thebiblelover7•26m ago•0 comments

108 Chrome Extensions Linked to Data Exfiltration and Session Theft via C2

https://socket.dev/blog/108-chrome-ext-linked-to-data-exfil-session-theft-shared-c2
2•jbegley•28m ago•0 comments

A Primer on Datacenters

https://www.generativevalue.com/p/a-primer-on-data-centers
1•sneakerblack•32m ago•0 comments

Agentic coding at enterprise scale demands spec-driven development

https://venturebeat.com/orchestration/agentic-coding-at-enterprise-scale-demands-spec-driven-deve...
1•y1n0•35m ago•0 comments

Automated Conjecture Resolution with Formal Verification

https://arxiv.org/abs/2604.03789
1•throwaway81523•41m ago•0 comments

Ente Hackathon #2

https://ente.com/blog/ente-hackathon-2026-april/
1•Cider9986•42m ago•0 comments

United CEO Has Pitched Possible Tie-Up with Rival American

https://www.bloomberg.com/news/articles/2026-04-13/united-ceo-has-pitched-possible-combination-wi...
2•mancerayder•43m ago•2 comments

World Quantum Day 2026

https://doodles.google/doodle/world-quantum-day-2026/
2•mxfh•43m ago•0 comments

Matrix-Game 3.0: Real-Time and Streaming Interactive World Model

https://matrix-game-v3.github.io/
2•pella•51m ago•0 comments

An Amazon warehouse worker died on the job at Oregon facility

https://techcrunch.com/2026/04/13/an-amazon-warehouse-worker-died-on-the-job-at-oregon-facility/
4•cebert•53m ago•1 comments

OpenAI acquires AI personal finance startup Hiro – financial agents next?

https://techcrunch.com/2026/04/13/openai-has-bought-ai-personal-finance-startup-hiro/
2•yesensm•56m ago•0 comments

MCP server for trading intelligence–gap scanner,SEC alerts,insider tracking

https://zivio-mcp-production.up.railway.app
1•doshinikunj•58m ago•0 comments

Wyden Urges House to Reject Handing Trump Unchecked Surveillance Authority

https://www.wyden.senate.gov/news/press-releases/wyden-urges-house-members-to-reject-handing-dona...
4•Cider9986•1h ago•0 comments