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

The ASML Q4 numberse are out: €9.7B in sales, €2.8B in net income [pdf]

https://ourbrand.asml.com/m/fded19d66e819e4b/original/Financial-statements-US-GAAP-Q4-2025.pdf
1•ArtTimeInvestor•19s ago•0 comments

Nvidia Overtakes Apple as TSMC's Biggest Customer

https://www.macrumors.com/2026/01/28/nvidia-replaces-apple-as-biggest-tsmc-customer/
1•tosh•46s ago•0 comments

Software Is Like Prose

https://adamgeorgiou.substack.com/p/software-is-like-prose
1•georgi0u•1m ago•0 comments

Human Brain Emulation

https://www.asimov.press/p/brains
1•mailyk•2m ago•0 comments

Nemotron-Personas-Brazil: Co-Designed Data for Sovereign AI

https://huggingface.co/blog/nvidia/nemotron-personas-brazil
1•ibobev•3m ago•0 comments

Metaphors for Biology: Time

https://www.asimov.press/p/metaphors-time
1•mailyk•3m ago•0 comments

US Black Hawk helicopter trespasses on private Montana ranch to grab elk antlers

https://arstechnica.com/culture/2026/01/us-black-hawk-helicopter-trespasses-on-private-montana-ra...
1•PaulHoule•3m ago•0 comments

Twig, a glamorous tmux session manager with Git worktree support

https://github.com/andersonkrs/twig
1•delduca•3m ago•0 comments

Streaming JSON in just 200 lines of JavaScript

https://krasimirtsonev.com/blog/article/streaming-json-in-just-200-lines-of-javascript
1•ibobev•4m ago•0 comments

Niwa(庭) – Async conflict-aware spec/planning for your LLM/agent

https://github.com/secemp9/niwa
1•secemp9•5m ago•1 comments

Volumetric Clouds with Clojure and Lwjgl

https://www.wedesoft.de/graphics/2026/01/27/volumetric-clouds/
1•ibobev•5m ago•0 comments

Show HN: HireIndex – 3 years of "Who Wants to Be Hired" trends

https://hireindex.xyz/#stats
1•dk8996•5m ago•0 comments

Ecuador says ICE agent tried to enter consulate in Minneapolis

https://www.reuters.com/world/americas/ecuador-says-ice-agent-tried-enter-consulate-minneapolis-2...
1•blurbleblurble•5m ago•0 comments

Hovering guitar strings (Using powerful magnets) [video]

https://www.youtube.com/watch?v=ueCO4spGNPs
1•dithered_djinn•6m ago•0 comments

Show HN: I built a loyalty card app that doesn't track you or require Google

https://cardaris.app
1•pazvanti•6m ago•0 comments

Decart's New Lucy 2 – Real Time AI Video Model

https://www.forbes.com/sites/charliefink/2026/01/27/decarts-new-lucy-2-generative-ai-video-model-...
1•dansheme•6m ago•0 comments

'I don't let bullies win,' says congresswoman Omar after substance thrown at her

https://www.bbc.com/news/articles/cn9zpee3llxo
1•blurbleblurble•7m ago•0 comments

A Small Swiss City Could Help Regulators Avoid the Next Grok Scandal

https://www.techpolicy.press/how-a-small-swiss-city-could-help-regulators-avoid-the-next-grok-sca...
1•donohoe•9m ago•0 comments

An AI short science fiction story

https://newintellectual.substack.com/p/saviors-sf-short
1•RagnarD•12m ago•0 comments

Show HN: MyTunes Pro – A TUI, keyboard-first music player for Linux develope

https://mytunes-pro.com/
1•loxo•13m ago•0 comments

Building Trustworthy Agents

https://www.kerno.io/blog/building-trustworthy-agents-with-rigorous-evaluation-frameworks
1•karimtr•13m ago•0 comments

Secret Playbook That Will Raise an Impressive Seed Round

https://pawelbrodzinski.substack.com/p/secret-playbook-that-will-raise-an
1•flail•14m ago•0 comments

We built a tiny invariant layer that preserves meaning when embeddings fail

https://github.com/Architect-Flow78/axiom-core
1•pascalnicolae•16m ago•1 comments

App leaks users' masturbation habits

https://www.404media.co/app-for-quitting-porn-leaked-users-masturbation-habits/
2•aunterste•18m ago•1 comments

Ask HN: How do you get Cloudflare to take abuse reports seriously?

2•y_oh_y•18m ago•0 comments

Show HN: Clawd Face – an expressive SVG face for Clawdbot in one script tag

https://github.com/Unayung/clawd-face
1•unayung•18m ago•1 comments

Show HN: Sandbox Agent SDK – unified API for automating coding agents

https://github.com/rivet-dev/sandbox-agent
6•NathanFlurry•19m ago•0 comments

When Every Network is 192.168.1.x

https://netrinos.com/blog/conflicting-subnets
2•pcarroll•19m ago•0 comments

Sorry for not knowing. But, what is that? (Pastebin-like)

https://sharetext.io/lyzelq5y
1•malcolmxxx•19m ago•0 comments

A runtime authorization layer for LLM agents

https://medium.com/@naolzewudu98/a70aabfb266d
1•naolbeyene•19m ago•0 comments