frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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.

Furifont, a Japanese font that shows furigana

https://furifont.antfu.me/
1•plaguna•5m ago•0 comments

Show HN: Bateri – a terminal, which you can drag&drop files to upload/download

https://bateri.dev/
1•tdgunes•5m ago•0 comments

Show HN: Ampsu – Privacy and EU-focused, adaptive TDEE fast calorie tracker

https://ampsu.eu/
1•hell-in-a-cell•6m ago•0 comments

WSP MCP – Free WordPress MCP for Connecting AI Coding Agents

https://github.com/bilalnaseer/wsp-wordpress-mcp
1•wspmcp•8m ago•0 comments

Jazz² Resurrection

https://de4th.dev/jazz2/
1•mrngm•9m ago•1 comments

Movietonight

https://movietonight.ai
1•Olubanjo_Kolapo•10m ago•0 comments

Bidirectional Type Slicing

https://arxiv.org/abs/2607.12197
1•fanf2•11m ago•0 comments

A death, a plagiarism scandal, a quest for revenge: the tale of Otto Z

https://www.theguardian.com/news/ng-interactive/2026/oct/08/a-death-a-plagiarism-scandal-and-a-qu...
2•Michelangelo11•20m ago•0 comments

Kerno 1.0 – AI Back End Runtime QA Engineer

https://kerno.io/blog/kerno-v1/
1•karimtr•22m ago•0 comments

AppReviewer Preflight – Catch App Store rejection risks before submitting apps

https://appreviewer.saposs.com/
1•jimmy_lee•23m ago•0 comments

Plasma 6.8 released (KDE's 30th birthday)

https://kde.org/announcements/plasma/6/6.8.0/
2•taventix•26m ago•1 comments

REA – I tested AI agent reverse engineering

https://korben.info/en/rea-ai-agent-reverse-engineering-test.html
1•keks0r•26m ago•0 comments

The 'leap second' could disappear

https://www.cbc.ca/news/world/leap-second-decision-9.7381049
1•goodcanadian•27m ago•0 comments

The Shortage of Oncologists: Australian Medical Oncologist Workforce Study

https://www.mja.com.au/journal/2012/196/1/shortage-medical-oncologists-australian-medical-oncolog...
1•Alien1Being•28m ago•0 comments

Oncology Workforce 'At Breaking Point'

https://www.medicalrepublic.com.au/oncology-workforce-at-breaking-point/122275
1•Alien1Being•29m ago•0 comments

AI was great until it was not

https://thetheorygirlie.substack.com/p/ai-was-great-until-it-was-not
7•JohnHammersley•35m ago•0 comments

Step 5 Preview: Architecture and Training for Agentic Work

https://platform.stepfun.ai/blog/inside-step-5-preview
1•vinhnx•36m ago•0 comments

Agro-Smart 2026 – Sustainable Agritourism and Smart Guest Experience Framework

https://github.com/marcelcluj-bit/Agro-Smart-2026--Eco-Tourism
1•marcelcluj2026•41m ago•0 comments

Show HN: I built a WAF 100% on SWI Prolog. Here is a challenge to break it

https://prologwaf.site/
1•lokinpendawa•43m ago•0 comments

Hybrid Financing and Real World Asset(RWA)Tokenization Framework for 1B USD

https://github.com/marcelcluj-bit/Global-Infrastructure--Fotbal-Soccer-Capital
1•marcelcluj2026•44m ago•0 comments

Sunsetting Decomp.dev

https://decomp.dev/
2•GaggiX•45m ago•0 comments

Forensic Analysis of RL/RLHF-Induced Privilege Escalation in AI Agents

https://arxiv.org/abs/2610.20437
1•sbulaev•46m ago•0 comments

Wanted to download an ISO, ended up writing a kernel exploit

https://blog.dfb.sh/blog/eap770-root-for-two-zeros/
2•tapper•50m ago•0 comments

Show HN: Working on Plug and play AI memory that works across AI agents

1•heysrb•51m ago•0 comments

LLM-gauze fixes LLM errors

https://github.com/ggeorgovassilis/llm-gauze
1•ggeorgovassilis•53m ago•1 comments

What changes when your search index lives on S3?

https://infino.ai/blog/search-index-on-s3/
1•tatvamasi•58m ago•0 comments

VeerAI: An AI agent inside our hosting dashboard

https://veerhost.com/introducing-veerai-ai-agent/
6•betterornotss•1h ago•0 comments

Yet another place where a Linux man page is inaccurate

https://sebsite.pw/w/20261014-initstate.html
3•birdculture•1h ago•1 comments

Aulico Is a TradingView Alternative

https://www.aulico.com/tradespaces/new
2•ratonbigger•1h ago•0 comments

How to Escape from the Iron Age

https://solar.lowtechmagazine.com/2024/03/how-to-escape-from-the-iron-age/
2•rwl•1h ago•0 comments