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•10mo 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•10mo 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•10mo 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.

Tennessee grandmother jailed after AI face recognition error links her to fraud

https://www.theguardian.com/us-news/2026/mar/12/tennessee-grandmother-ai-fraud
1•danso•48s ago•0 comments

Don't Vibe – Prove

https://ngrislain.github.io/projects/2026-3-12-dont-vibe--prove/
1•ngrislain•6m ago•0 comments

I built the Vy replacement that launches March 26th, the day Vy shuts down

https://inceptive-ai.com
1•alymaknojiya•6m ago•1 comments

Meta delays rollout of new AI model after performance concerns

https://www.nytimes.com/2026/03/12/technology/meta-avocado-ai-model-delayed.html
2•wibbily•9m ago•1 comments

Adobe's longtime CEO to exit role amid AI disruption, shares fall

https://www.reuters.com/sustainability/boards-policy-regulation/adobe-announces-ceo-transition-sh...
3•tartoran•13m ago•0 comments

Cinema App Is for Movie Streaming or Games Too?

2•jackrandy•13m ago•0 comments

AlgoTradeAI

https://www.algotradeai.live/
2•narantechinc•14m ago•0 comments

One plan/spec to rule them all (at least replace lots of docs)

2•wek•15m ago•0 comments

In space, no one can hear you kernel panic

https://increment.com/software-architecture/in-space-no-one-can-hear-you-kernel-panic/
2•p0u4a•16m ago•1 comments

Rivian Introduces R2 Lineup, Sharing Full Trims and Pricing

https://rivian.com/newsroom/article/rivian-introduces-r2-lineup
3•freetime2•17m ago•0 comments

Show HN: Nix on Windows –- proof-of-concept demo

https://github.com/nix-windows/nix-windows-demo
2•Ericson2314•19m ago•0 comments

How a subtle CSP misconfiguration broke our admin panel and how we fixed it

https://syndicode.com/blog/csp-failure-rails/
2•lglazyeva•20m ago•0 comments

Auto-Browser – An MCP-native browser agent with human takeover

https://github.com/LvcidPsyche/auto-browser
1•Lvcid•21m ago•0 comments

Silicon Valley's New Obsession: Watching Bots Do Their Grunt Work

https://www.wsj.com/tech/ai/ai-bots-claude-openclaw-285ac816
1•bookofjoe•22m ago•1 comments

Silicon Valley Abuzz About Adding AI Compute to Engineer Compensation

https://www.businessinsider.com/ai-compute-compensation-software-engineers-greg-brockman-2026-3
1•healsdata•22m ago•0 comments

Show HN: Tarvos – Relay Architecture for infinitely building with coding agents

https://github.com/Photon48/tarvos/tree/main
1•Photon48•22m ago•0 comments

Enabling Efficient Sparse Computations Using Linear Algebra Aware Compilers

https://www.osti.gov/biblio/3013883
1•matt_d•23m ago•0 comments

Show HN: Parevo Core – Auth, tenant, permission in one Go library

https://github.com/parevo/core
1•parevo•25m ago•0 comments

Moving beyond RLM and ReAct based coding agents

https://randomlabs.ai/blog/slate
2•akira_067•27m ago•0 comments

Full Source Code of Sweden's E-Government Platform Leaked from Compromised CGI

https://darkwebinformer.com/full-source-code-of-swedens-e-government-platform-leaked-from-comprom...
2•reimertz•28m ago•0 comments

Musk's X to Alter Verification System in Europe

https://news.bloomberglaw.com/california-brief/musks-x-to-alter-verification-system-in-europe-com...
1•absqueued•33m ago•0 comments

K2 Black Panther: It Might Be the Best Tank on Earth

https://nationalsecurityjournal.org/k2-black-panther-it-might-be-the-best-tank-on-earth-not-made-...
1•ckmate-king-2•41m ago•0 comments

Apple Releases New Versions of iOS for Older iPhones

https://www.macrumors.com/2026/03/11/apple-ios-16-7-15-release/
5•mgh2•45m ago•2 comments

Add per-repo output language preference

1•nishiohiroshi•45m ago•0 comments

Feedback on a local-first MCP memory system for AI assistants?

https://github.com/ptobey/local-memory-mcp
1•ptobey•45m ago•1 comments

Does MAGA Want American Science to Win?

https://www.thenewatlantis.com/publications/does-maga-actually-want-american-science-to-win
1•SCEtoAux•46m ago•1 comments

Compare Claude 4.6 Opus and GPT-5.2 to Boost E-E-A-T Content Quality

https://searchfit.ai/blog/claude-4-6-opus-vs-gpt-5-2-for-eeat-content-accuracy-citations-hallucin...
1•kasaei•48m ago•0 comments

OpenClaw Meets Microsoft Agentic Identity [video]

https://www.youtube.com/watch?v=7uD2vyfBUUs
1•umangsehgal93•50m ago•0 comments

Live Stream Oscar Wilde Importance of Being Earnest

https://www.youtube.com/watch?v=obX-HGs-PS8
1•frm88•51m ago•1 comments

Lobsters Interview with Ngoldbaum

https://alexalejandre.com/programming/interview-with-ngoldbaum/
2•birdculture•53m ago•1 comments