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.

Show HN: Semantic search over Hacker News, built on pgvector

https://ask.rivestack.io/
1•stranger90•1m ago•0 comments

Show HN: Tlsctl – A CLI for inspecting and troubleshooting TLS

https://github.com/catay/tlsctl
1•_smertens_•1m ago•0 comments

Embedding Wren in Hare

https://drewdevault.com/2025/08/20/2025-08-20-Hare-and-Wren.html
1•tosh•3m ago•0 comments

Deception Analysis with Artificial Intelligence an Interdisciplinary Perspective

https://arxiv.org/abs/2406.05724
1•rramadass•3m ago•0 comments

Measuring ASI:AI's First Exam

https://12gramsofcarbon.com/p/measuring-asi-ais-first-exam
1•theahura•3m ago•0 comments

Alpine Linux does not make the news (2023)

https://drewdevault.com/2023/07/25/Alpine-does-not-make-news.html
1•tosh•4m ago•0 comments

Test

2•aegis-bot•5m ago•0 comments

A Poet with No Verse

https://akshay.fyi/posts/a-poet-with-no-verse/
2•akshay_s•6m ago•0 comments

Steal These Buttons

https://gtm.bio/buttons/
1•TechSquidTV•6m ago•0 comments

NASA Found a Secret Military Base Buried 100 Feet Deep in Greenland's Ice Shelf

https://www.popularmechanics.com/science/a70433682/greenland-ice-secret-base-nasa-found/
1•Betelbuddy•6m ago•0 comments

Show HN: Kwerty – A cyberpunk typing arena with combos and survival mode

https://kwerty.site
1•soexya•8m ago•0 comments

Lobsters Interview with Steveklabnik

https://alexalejandre.com/programming/steve-klabnik-interview/
2•birdculture•9m ago•0 comments

Poland bans camera-packing cars made in China from military bases

https://www.theregister.com/2026/02/19/poland_china_car_ban/
3•Bender•9m ago•0 comments

Dijkstra animation on real map data with raylib

https://github.com/uysalibov/gezgin
1•uysalibov•9m ago•0 comments

Apex-Agents

https://www.mercor.com/blog/introducing-apex-agents/
1•handfuloflight•10m ago•0 comments

Danish military evacuates US submariner who needed urgent medical care

https://www.militarytimes.com/news/your-military/2026/02/22/danish-military-evacuates-us-submarin...
1•Betelbuddy•11m ago•0 comments

Crims create fake remote management vendor that sells a RAT

https://www.theregister.com/2026/02/19/rmm_rat_trustconnect/
1•Bender•11m ago•0 comments

Top European Football Transfers Mapped

https://footballgeo.pythonanywhere.com/
1•orionbushshrimp•11m ago•0 comments

Did that bot just defame someone?

https://suthakamal.substack.com/p/did-that-bot-just-defame-someone
1•suthakamal•12m ago•1 comments

Amazon's vibe-coding tool Kiro reportedly vibed too hard and brought down AWS

https://www.theregister.com/2026/02/20/amazon_denies_kiro_agentic_ai_behind_outage/
2•Bender•12m ago•0 comments

Show HN: I built strictyamlx, a small Python extension to StrictYAML

https://pypi.org/project/strictyamlx/
1•notesbymuneeb•14m ago•0 comments

Structured Concurrency and Go

https://rednafi.com/go/structured-concurrency/
2•rednafi•15m ago•1 comments

Show HN: Drowse – Nix dynamic derivations made easy

https://github.com/figsoda/drowse
2•figsoda•15m ago•0 comments

Oops, You Wrote a Database (2025)

https://dx.tips/oops-database
2•tamnd•15m ago•0 comments

Putin Tried to Freeze Ukraine. Instead, He Sparked an Energy Revolution

https://www.motherjones.com/politics/2026/02/putin-tried-to-freeze-ukraine-instead-he-sparked-an-...
2•cdrnsf•15m ago•0 comments

Writing Against the Global Lobotomy

https://kerkour.com/writing-against-the-global-lobotomy
2•randomint64•17m ago•0 comments

Quarkus: Supersonic Subatomic Java

https://github.com/quarkusio/quarkus
1•tosh•19m ago•0 comments

Forge-Specific Git Repository Folders

https://nesbitt.io/2026/02/22/forge-specific-repository-folders.html
1•chmaynard•20m ago•0 comments

Unsung heroes: Flickr's URLs scheme

https://unsung.aresluna.org/unsung-heroes-flickrs-urls-scheme/
2•bookofjoe•21m ago•0 comments

Xweather Live – Interactive global vector weather map (ad-free))

https://live.xweather.com/
2•unstyledcontent•21m ago•1 comments