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.

Target will stop selling cereals with synthetic colors by end of May

https://www.sfgate.com/business/article/target-to-stop-selling-cereals-with-certified-21945159.php
1•tokyobreakfast•1m ago•0 comments

War powers debate intensifies after Trump Iran attack without Congress approval

https://apnews.com/article/congress-war-powers-trump-iran-constitution-37ec6685d9ded1d467a719f91e...
1•SilverElfin•2m ago•0 comments

A Cookie for Dario? – Anthropic and selling death

https://www.anildash.com/2026/02/27/a-cookie-for-dario/
1•only_in_america•3m ago•0 comments

Why reinforcement learning breaks at scale, and how a new method fixes it

https://techxplore.com/news/2026-02-scale-method.html
1•brandonb•3m ago•0 comments

What Art Is Doing

https://www.symmetrybroken.com/what-art-is-doing/
1•riemannzeta•5m ago•0 comments

Simulated Reality: Quantum Mechanics, Brain-Machine Interfaces, Transhumanism

https://simulatedrealitybook.com/
1•thebojda•6m ago•0 comments

Ask HN: Apart from coding, what do you use AI for daily?

1•kantord•8m ago•0 comments

Qwen3.5 122B and 35B models offer Sonnet 4.5 performance on local computers

https://venturebeat.com/technology/alibabas-new-open-source-qwen3-5-medium-models-offer-sonnet-4-...
4•lostmsu•9m ago•0 comments

Data-Driven Nutrition

https://www.empirical.health/blog/biomarker-driven-nutrition/
1•brandonb•9m ago•0 comments

IEEE robot videos (video Friday)

https://spectrum.ieee.org/quadruped-farming-robots
1•bsrkf•10m ago•0 comments

Scientists deliver new molecule for getting DNA into cells

https://phys.org/news/2026-02-scientists-molecule-dna-cells.html
1•geox•10m ago•0 comments

Discord's Fall Would Suck for TTRPGs

https://www.gamespot.com/articles/discords-fall-would-suck-for-ttrpgs/1100-6538456/
1•1659447091•11m ago•1 comments

Is using AI for domestic defense more and more nullifying the second amendment?

1•bdelmas•13m ago•1 comments

Tether: An inter-LLM mailbox MCP tool

https://github.com/latentcollapse/Tether
1•LC_58008•14m ago•1 comments

OpenClaw vs. Google – Mass Ban Wave [video]

https://www.youtube.com/watch?v=qLI_5e8IsSY
1•sabrina_ramonov•14m ago•0 comments

Kash Patel's Girlfriend Seeks Fame and Fortune, Escorted by an FBI Swat Team

https://www.nytimes.com/2026/02/28/us/politics/kash-patel-girlfriend.html
4•duxup•15m ago•1 comments

Apple's Rosetta 2 for Linux VM hides the CPU and kernel arch info

https://blog.inoki.cc/2026/02/28/Apple-Rosetta-Linux-VM-Secret-en/index.html
1•inoki•17m ago•0 comments

Could code written by humans (pre-AI) have any value in the future?

1•0ut0flin3•18m ago•0 comments

The Third Hard Problem

https://mmapped.blog/posts/48-the-third-hard-problem
1•vrnvu•21m ago•0 comments

Built Netflix's Algorithm from Scratch

https://medium.com/@notuearmand250/i-built-netflixs-algorithm-from-scratch-and-the-results-surpri...
1•notuearmand250•21m ago•0 comments

Agentic-coded Ethereum client targeting 2030 roadmap

https://eth2030.com/
1•mellosouls•21m ago•1 comments

Yes, and

https://htmx.org/essays/yes-and/
1•cgkou•21m ago•0 comments

Show HN: Panther - Bloomberg Terminal for prediction markets now in early access

https://getpanther.app/
1•mkelias•21m ago•0 comments

Show HN: PyTorch/FEniCSx pipeline for elastocaloric metamaterial optimization

1•Rao_Atreya•22m ago•0 comments

Maps Mania: This Is London Calling – Discover Global Radio Mapping

https://googlemapsmania.blogspot.com/2026/02/this-is-london-calling-discover-global.html
1•FreeGuessr•24m ago•0 comments

Show HN: ScreenBuddy – Mac screen recorder with auto-zoom on clicks

https://screenbuddy.xyz/
1•jiabins0303•27m ago•0 comments

Local AI Devtool to assist setting up vibecoding env

https://optimalvelocity.io/
1•dlwodnjs42•32m ago•1 comments

Hazard Cascade

https://outofedenwalk.nationalgeographic.org/hazard-cascade/
1•ilamont•33m ago•0 comments

Show HN: Claude-plan-reviewer – Rival AI reviews Claude Code's plans

2•yuu1ch13•34m ago•0 comments

Custom Data Structures in E-Graphs

https://uwplse.org/2026/02/24/egglog-containers.html
2•todsacerdoti•35m ago•0 comments