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

Pentagon Laser Shoots Down Customs Border Patrol Drone in Texas

https://www.bloomberg.com/news/articles/2026-02-27/pentagon-laser-shoots-down-customs-border-patr...
1•c420•1m ago•0 comments

Show HN: RentDaNang – 6,500 Da Nang rentals in 6 languages, built solo with AI

https://rentdanang.app
1•visualmovement•1m ago•0 comments

The Phantom Horizon

https://www.aerosociety.com/news/the-phantom-horizon/
1•bookofjoe•2m ago•0 comments

Robot wars are a reality (2007)

https://www.theguardian.com/commentisfree/2007/aug/18/comment.military
1•bariumbitmap•3m ago•0 comments

Show HN: Gas Town Control Plane – hosted monitoring for multi‑agent workspaces

https://github.com/SmolNero/gastown-control-plane
1•edgar_ortega•4m ago•0 comments

Will AI Replace White Collar Jobs in 12 Months? [video]

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

Show HN: Zenboard – A native macOS reference board for creatives

https://zenboard.app/
1•mdgr44•8m ago•0 comments

Show HN: StillPoint – local-first Markdown workspace with distributed sync

https://github.com/grnwood/stillpoint
1•grnwood•9m ago•1 comments

Who Is DrChip?

http://drchip.org/astronaut/tartan.html
1•bariumbitmap•10m ago•0 comments

The emerging ecosystem built around OpenClaw, 2 months after its creation

https://manifest.build/claw-market-map-Q1-2026/
1•stosssik•14m ago•1 comments

The Gravity Problem: Why Defense AI Companies Drift Toward Offense

https://eric.mann.blog/the-gravity-problem-why-defense-ai-companies-drift-toward-offense/
1•eamann•17m ago•0 comments

Netflix backs out, giving CNN and HBO to Ellison

https://techcrunch.com/2026/02/26/netflix-warner-bros-discovery-paramount-wbd-bid-studios-hbo-cnn...
2•KnuthIsGod•17m ago•1 comments

Open Source Webflow Skills

https://224industries.com.au/webflow-skills
1•flashbrew•18m ago•0 comments

PaperBanana: Automating Academic Illustration for AI Scientists

https://github.com/arashabadi/PaperBanana
1•bpierre•20m ago•0 comments

The Notorious Delayed-Choice Quantum Eraser – Sean Carroll

https://www.preposterousuniverse.com/blog/2019/09/21/the-notorious-delayed-choice-quantum-eraser/
1•tambourine_man•20m ago•0 comments

WebAssembly Is Everywhere

https://thenewstack.io/webassembly-deep-dive/
1•attackordie•21m ago•0 comments

AI Video Creation Platform

https://www.nano-video.io
1•gosailing•21m ago•0 comments

A bright coloured fish

https://varun.ch/til/bright-coloured-fish/
1•varun_ch•22m ago•0 comments

ValveFM: Vintage FM Radio TUI in Go

https://github.com/Zorig/valveFM
1•zorig•26m ago•0 comments

Netflix drops bid for Warner Bros, clearing way for Paramount takeover

https://www.bbc.com/news/articles/c5y6p5ypgmzo
2•throw0101c•28m ago•2 comments

Drivers reeling after passengers caught out by AI-powered safety cameras

https://www.abc.net.au/news/2026-02-27/seat-belt-cameras-catch-drivers-in-costly-mistake/106395672
4•ahonhn•29m ago•3 comments

OllamaMQ

https://github.com/Chleba/ollamaMQ
1•chleba•29m ago•1 comments

Show HN: Rekal – RAG-queryable intent ledger anchored to Git

https://github.com/rekal-dev/rekal-cli
1•guocongwudi•30m ago•0 comments

DRAM Shortage to Cause 'Seismic Shift' in Smartphone Market, Apple Less Affected

https://www.macrumors.com/2026/02/26/dram-shortage-apple-less-affected/
3•mgh2•35m ago•0 comments

Babylonian Biometrics and Widespread Methodological Shortcomings

https://dl.acm.org/doi/10.1145/3744705
1•shusaku•36m ago•0 comments

Citrini Research research note on AI gets its economics wrong

https://www.economist.com/finance-and-economics/2026/02/25/a-viral-research-note-on-ai-gets-its-e...
1•andsoitis•36m ago•0 comments

Steering the Ship

https://keygen.sh/blog/steering-the-ship/
1•subomi•38m ago•0 comments

Block cuts thousands of jobs as it embraces AI

https://www.bbc.com/news/articles/cq570d12y9do
2•geox•39m ago•1 comments

Two Insider Cases We've Recently Closed

https://news.kalshi.com/p/kalshi-trading-violation-enforcement-cases
3•fortran77•39m ago•2 comments

Five Eyes warn: Patch your Cisco SD-WAN or risk root takeover

https://www.theregister.com/2026/02/26/five_eyes_cisco_sdwan/
2•Bender•43m ago•0 comments