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.

InfinityFree's "?I=1"

https://rtnf.substack.com/p/infinityfrees-i1
1•altilunium•7m ago•0 comments

Show HN: Epistemic News – re-ranking HN comments

https://ianchanning.com/hn/
1•icc97•8m ago•0 comments

Show HN: Track Cassette Looper for iPad

https://autographmusic.com/c-60.html
1•yetanotheruser•9m ago•0 comments

Spend Your Boon

https://www.macsparky.com/blog/2026/11/spend-your-boon/
1•thecosas•12m ago•0 comments

AI model for predicting neurophysiological responses to text and pictures

https://www.nature.com/articles/s41467-026-75653-x
1•geox•14m ago•0 comments

Score Perfect to MusicXML Converter

https://www.geekabit.nl/projects/score-perfect-to-musicxml-converter/
1•WaluigiBSOD•14m ago•0 comments

Vercel should fork and maintain Deno

3•gfalcao•17m ago•0 comments

Porting Elite to the Commodore PET the long way [video]

https://www.youtube.com/watch?v=6D0yT1bgH0s
2•sandebert•21m ago•0 comments

New 'Access to Justice' Benchmark: Leading AI Models Miss Critical Legal Details

https://epyhia.com/new-access-to-justice-benchmark-finds-leading-ai-models-miss-critical
3•arbuge•22m ago•0 comments

What Do You Want to Know About New York Times Journalism and A.I.?

https://www.nytimes.com/2026/11/12/insider/nyt-journalism-ai.html
2•mmooss•23m ago•0 comments

Binary Logic Breaks AI Safety: "Yes, No, Probably"

https://medium.com/@kate8382/binary-logic-breaks-ai-safety-and-is-analyzing-prompt-injections-poi...
3•kate8382•23m ago•0 comments

Serving GLM-5.3 at 607.8 tok/s across two Nvidia DGX stations with vLLM

https://developer.nvidia.com/blog/when-one-gpu-isnt-enough-serving-glm-5-3-across-two-nvidia-dgx-...
12•wondersky•23m ago•0 comments

Show HN: Agweb – a browser for agents that stays out of your way

https://github.com/paul-nameless/agweb
2•paul_nameless•24m ago•0 comments

Show HN: Lampka – a Windows PDF reader whose dark mode keeps figures in colour

https://lampka.app/
2•NightPageReader•25m ago•0 comments

Show HN: Fursoy – Out-of-order RV64IMAFDV core in SystemVerilog (Linux 6.6)

https://github.com/FURSOY/fursoy-cpu
2•fursoy•26m ago•0 comments

Show HN: A terminal-native idle factory game, written in Rust with ratatui

https://gitlab.com/snipedbywifi/terminactory
2•snipedbywifi•26m ago•0 comments

Show HN: Ryph – Event-driven, self-hosted agents for incident response

https://github.com/ryph-hq/ryph
2•lftherios•27m ago•0 comments

'Planimal' cells keep nearly entire algal genome after experimental cell fusion

https://phys.org/news/2026-11-planimal-cells-retain-entire-algal.html
2•bookofjoe•28m ago•1 comments

Navigating Open Source Software Development in the Generative AI Era

https://www.linuxfoundation.org/research/oss-development-gen-ai-era-2026
2•ersinesen•29m ago•0 comments

Jensen Huang commemorative plaque gone from Denny's where he founded Nvidia

https://nypost.com/2026/11/13/business/jensen-huang-commemorative-plaque-gone-from-famed-dennys-w...
2•PLenz•29m ago•1 comments

Show HN: Existence-trace 0.4.6 makes its journal agent justify a new rule scope

https://github.com/MaxonT/existence-trace/releases/tag/v0.4.6
3•MaxTigerYoung•32m ago•0 comments

Show HN: Aris – an open-source agent that lives in the MacBook notch

https://github.com/LumenJSN/Aris
2•lumenjs•34m ago•0 comments

The Myth of Neutral Code

https://foss.life/notes/2026/the-myth-of-neutral-code/
3•birdculture•40m ago•0 comments

Open.Dotlet – a 30-key keypad for saved Codex tasks

https://opendotlet.com/
2•peter-machona•41m ago•0 comments

Linux cryptomining malware: Inside the SANSAR toolkit

https://www.elastic.co/security-labs/threat-command/sansar-linux-cryptomining-malware
3•torutofu•41m ago•0 comments

Bear Roll: daily view of Bear Blog discover feed top posts

https://bearroll.dev/
2•joshrichards•42m ago•1 comments

I built a free, local-first studio for creating better GitHub README files

https://github.com/Yxoro/readme-studio
2•Readmestudio•43m ago•0 comments

Why Every Startup Needs an Origin Myth

https://www.joanwestenberg.com/p/why-every-startup-needs-an-origin
5•mrkn1•43m ago•0 comments

Italy fines Meta $887M over Android users' data access

https://www.reuters.com/world/italy-fines-meta-887-million-over-android-users-data-access-2026-11...
12•giuliomagnifico•44m ago•1 comments

Some Projects Need to Fail

https://yusufaytas.com/some-projects-need-to-fail
9•theanonymousone•46m ago•0 comments