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.

Cairn: Agent-Native CLI for autonomous settlement workflows

https://crates.io/crates/cairn-cli
1•allynjalford•1m ago•0 comments

Poker Legend and Author of 'The Theory of Poker' David Sklansky Passes Away

https://www.pokernews.com/news/2014/02/poker-legend-david-sklansky-passes-away-50722.htm
1•bookofjoe•4m ago•0 comments

SWE-bench will hit 90% this year

https://fabraix.com/blog/swe-bench-90-percent
1•zachdotai•4m ago•0 comments

Baseball ushers in high-tech replay review system for calling balls and strikes

https://www.nbcnews.com/sports/baseball/baseball-ushers-high-tech-replay-review-system-calling-ba...
2•sharkweek•4m ago•0 comments

Show HN: Create a full language server in Go with 3.17 spec support

https://github.com/owenrumney/go-lsp
1•rumno0•4m ago•0 comments

Disney's $1B Investment in OpenAI DOA as Sam Altman Pulls Sora Plug

https://deadline.com/2026/03/sora-shut-down-disney-investment-1236764689/
1•roboror•5m ago•0 comments

Jury finds Meta liable in case over child sexual exploitation on its platforms

https://www.cnn.com/2026/03/24/tech/meta-new-mexico-trial-jury-deliberation
3•billfor•6m ago•0 comments

Show HN: A/B test images with your eyes using ARKit face tracking

https://saccadeapp.com/
1•hoag•8m ago•0 comments

Running Iroh on an ESP32

https://www.iroh.computer/blog/iroh-on-esp32
3•dignifiedquire•8m ago•0 comments

Linux 7.0-Rc5 Released: Linux 7.0 "Starting to Calm Down"

https://www.phoronix.com/news/Linux-7.0-rc5-Released
2•daisydevel•9m ago•0 comments

Why Be Reactive?

https://crank.js.org/blog/why-be-reactive/
1•ingve•9m ago•0 comments

150 years of Nature: a data graphic charts our evolution

https://www.nature.com/articles/d41586-019-03305-w
1•costent•9m ago•0 comments

NASA's lunar Gateway space station is out. Moon bases are in

https://www.space.com/space-exploration/artemis/nasas-lunar-gateway-space-station-is-out-moon-bas...
2•blue1•9m ago•0 comments

Urban Fabric lets you redesign streets, intersections, and neighborhoods

https://urbanfabric.app/
2•fcpguru•9m ago•0 comments

Forgot password Using users conversations only they would know

https://dreami.me
1•thesafestclaw•11m ago•1 comments

Using FireWire on a Raspberry Pi

https://www.jeffgeerling.com/blog/2026/firewire-on-a-raspberry-pi/
1•thomasjb•13m ago•0 comments

Building high-performance full-text search for object storage

https://clickhouse.com/blog/clickhouse-full-text-search-object-storage
1•samaysharma•13m ago•0 comments

Kite-MCP – Trade Indian stocks on Zerodha via AI conversation (MCP server)

https://github.com/aranjan/kite-mcp
1•am_ran32•14m ago•0 comments

Show HN: Pipguard – pre-install malware scanner for Python supply-chain attacks

https://github.com/atomsai/pipguard
1•secondmod•17m ago•0 comments

Greq – A CLI BM25 search engine

https://github.com/KlausSchaefers/greq
1•klausschaefers•17m ago•1 comments

Show HN: WARPSimLab – A Personal Finance Simulator

https://warpsimlab.org/
1•alanne•20m ago•1 comments

Disney Ends $1B OpenAI Partnership After Sora Shuts Down

https://www.thewrap.com/industry-news/tech/openai-sora-video-app-shutting-down/
1•petethomas•20m ago•0 comments

Canadian woman held with daughter by ICE warns all immigrants to 'lie low'

https://www.theguardian.com/us-news/2026/mar/24/canadian-mother-detention-warns-immigrants
5•n1b0m•20m ago•3 comments

Pollen: The Book Is a Program

https://docs.racket-lang.org/pollen/
1•notagoodidea•20m ago•0 comments

ETL-D – Deterministic data parsing for AI agents (MCP Server)

https://github.com/pablixnieto2/etld-mcp-server
1•pablixnieto2•21m ago•0 comments

"﷽" U+fdfd: Arabic Ligature Bismillah AR-Rahman AR-Raheem (Unicode Character)

https://unicodeplus.com/U+FDFD
2•jordigh•21m ago•0 comments

Trump administration will pay $1B in taxpayer funds to not build wind farms

https://www.cnn.com/2026/03/23/climate/trump-totalenergies-offshore-wind-cancellation
2•keithnz•23m ago•1 comments

Show HN: Shared Crossword with 1M Words

https://hugecrossword.com/
2•anythingelse•28m ago•0 comments

U.S. Government's Ban on Anthropic Looks Like Punishment Attempt, Judge Says

https://www.wsj.com/tech/ai/u-s-governments-ban-on-anthropic-looks-like-punishment-attempt-judge-...
3•JumpCrisscross•29m ago•0 comments

Show HN: Captain Claw – personal AI workspace

https://captain-claw.com/
2•kstedev•30m ago•0 comments