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.

MCP for AI Agents: Why your instructions probably never reach the model

https://quackle.io/blog/mcp-server-instructions-never-reach-the-model
1•OxfordCommand•3m ago•0 comments

A college that has never had grades

https://gradingforgrowth.com/p/a-college-that-has-never-had-grades
1•rickcarlino•4m ago•0 comments

Multi-large language model systems exhibit robust semantic collapse

https://www.nature.com/articles/s42256-026-01345-2
1•drusepth•4m ago•0 comments

Google delaying to share Android kernel code under GPLv2

https://grapheneos.social/@GrapheneOS/117718998797502202
1•drewfax•4m ago•0 comments

I closed one third of all Plasma bugs

https://thelibre.news/how-i-closed-one-third-of-all-plasma-bugs/
1•LorenDB•6m ago•0 comments

High-Speed Autonomous Off-Road Navigation: Trail Racing with UMV [video]

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

Show HN: Imgtosvg – Browser-Side Image-to-SVG/DXF/EPS Studio via VTracer WASM

https://imgtosvg.app/
1•lynsea•11m ago•0 comments

SenseNova-loop doesn't refuse searching The PirateBay for movies

https://jeena.net/notes/1500
2•jeena•14m ago•0 comments

Docling v2 500m QONNX for faster CPU runs

https://github.com/andersfylling/docling-v2-500m-qonnx
1•andersfylling•16m ago•0 comments

Trump administration Proposes First Definition for Ultraprocessed Foods

https://www.nytimes.com/2026/12/02/well/eat/ultraprocessed-foods-definition-rfk-jr.html
1•instagib•20m ago•0 comments

FCC approves Musk's plan to send a million SpaceX data satellites into space

https://www.bbc.com/news/articles/cwp836l8n1jgo
1•daniel_iversen•20m ago•0 comments

Push-T can't tell whether a JEPA world model learned physics or memorized demos

https://haddyalchaer.com/pusht-pro
1•halcdev•20m ago•0 comments

Show HN: Just Dashboard, open-source Linux management dashboard

https://github.com/JustDashboard/Just-Dashboard
1•Wayy10•21m ago•0 comments

Enough RoPE

https://ianbarber.blog/2026/12/02/enough-rope/
2•hasheddan•21m ago•0 comments

Ford recalls 800k SUVs after deaths linked to leaking exhaust part

https://www.cbc.ca/lite/story/9.7445531
1•colinprince•24m ago•0 comments

German embassy damaged as Russia pounds Ukraine, killing at least 21

https://www.reuters.com/world/russian-attack-ukraines-kharkiv-bus-station-kills-six-wounds-least-...
2•rmason•25m ago•0 comments

Starlink to Deorbit About 1k Satellites Under New Safety Rule

https://teslanorth.com/2026/12/01/starlink-deorbit-1000-satellites-safety-rule/
1•gmays•27m ago•0 comments

Who Killed the Internet's Business Model? [video]

https://www.youtube.com/watch?v=KQg0BD15fUw
1•mooreds•29m ago•0 comments

The Holiday Lights Project (2022)

https://wickedsmaht.medium.com/the-holiday-lights-project-5e820f4bb0d6
1•mooreds•33m ago•0 comments

ErdOS 1 Bison Released – An minimal, lightweight Linux distro

https://erd.sh/
1•harrisonerd•34m ago•2 comments

How Codex Happened

https://every.to/p/how-codex-happened
1•mooreds•35m ago•0 comments

Show HN: Arclab, Practice AI-assisted coding interviews

https://arclab.app
1•miyannishar•38m ago•0 comments

Interdependent privacy: why your wedding is a privacy decision for 150 people

https://ziv.live/guides/wedding-photo-sharing-privacy
1•dfhromatka•39m ago•0 comments

Show HN: TV Remote for iPhone – Control LG/Samsung/Android TV over Wi‑Fi

https://tvremote.eltacrew.com/
1•eltacrew•41m ago•0 comments

E-Torque Reverse Engineering

https://transistor-man.com/everything_etorque.html
1•pombo•48m ago•0 comments

Takeaways from Jensen Huang's Interview with the House Foreign Affairs Committee

https://foreignaffairs.house.gov/news/press-releases/top-five-takeaways-from-jensen-huang-s-trans...
10•rdoherty•50m ago•0 comments

Everything you need. Right in the browser

https://jellykit.site/
1•luispa•51m ago•0 comments

Darwin Among the Machines (1863)

https://publish.fid-media.de/server/api/core/bitstreams/e0da505d-200c-43ab-be4b-6604a4df816f/content
2•bauldursdev•52m ago•0 comments

Show HN: Marmalade – open-source AEO / GEO tool

https://github.com/AlexjComeau/marmalade
2•alexjcomeau•53m ago•0 comments

Datadog State of Java Report

https://www.infoq.com/news/2026/12/datadog-java-report-2026/
1•ejboy•55m ago•0 comments