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.

BGP in 2025 – Geoff Huston [video]

https://www.youtube.com/watch?v=Sm1HjdmoeeA
1•Unearned5161•1m ago•0 comments

Peter Thiel knows about the Antihchrist

1•zerosizedweasle•3m ago•0 comments

Charting market dynamics in India's underground ticket resale WhatsApp groups

https://aftereod.substack.com/p/stress-fractures-indias-concert-boom
1•huwsername•5m ago•0 comments

Claimcheck: Narrowing the Gap Between Proof and Intent

https://midspiral.com/blog/claimcheck-narrowing-the-gap-between-proof-and-intent/
1•todsacerdoti•6m ago•0 comments

Show HN: Instrumental Model from Scratch (With Demo)

https://instr.io/?view=model
1•day6•8m ago•0 comments

Tell HN: Ramadan Mubarak

1•Sayyidalijufri•11m ago•0 comments

Personal Agents with David Singleton and Hugo Barra [video]

https://www.youtube.com/watch?v=1tK_x_vxGWs
1•jairojair•12m ago•0 comments

Microsoft tests Researcher and Analyst agents in Copilot

https://www.testingcatalog.com/microsoft-tests-researcher-and-analyst-agents-in-copilot-tasks/
1•gmays•13m ago•0 comments

Show HN: Agent Audit Kit v0.1 – deterministic replay + stress for LLM agents

https://github.com/helpfuldolphin/AgentAuditKit/releases/tag/aak-v0.1.0-e3
1•helpfuldolphin•15m ago•0 comments

Honey bees navigate more precisely than previously thought

https://uni-freiburg.de/en/honey-bees-navigate-more-precisely-than-previously-thought/
3•geox•21m ago•0 comments

FBI, St. Paul police probing ICE arrest that resulted in skull fractures

https://apnews.com/article/immigration-enforcement-minneapolis-hospital-ice-beating-assault-eb305...
5•petethomas•22m ago•0 comments

Lessons learned from `oapi-codegen`'s time in the GitHub Secure Open Source Fund

https://www.jvt.me/posts/2026/02/17/oapi-codegen-github-secure/
1•zdw•27m ago•0 comments

"Observability Engineering": a book so nice, we wrote it twice

https://substack.com/home/post/p-186798752
3•donutshop•29m ago•0 comments

Claude Is Okay

2•zerosizedweasle•31m ago•0 comments

Which Future?

https://michaelnotebook.com/whichfuture/
1•yurivish•33m ago•0 comments

Tell HN: Attackers using Google parental controls to prevent account recovery

5•TazeTSchnitzel•33m ago•0 comments

A No-Name Director to Everyone but His 38M Fans

https://www.theatlantic.com/culture/2026/02/iron-lung-markiplier-youtuber-movie-review/686020/
2•zdw•34m ago•0 comments

Out of the blue: A look back at Air Force One's classic design (2018)

https://www.raymondloewy.com/out-of-the-blue-a-look-back-at-air-force-ones-classic-design/
1•hank808•35m ago•1 comments

Show HN: DevDay – End-of-day recap for AI coding sessions

https://github.com/ujjwaljainnn/devday
1•ujjwaljainnn•35m ago•0 comments

Show HN: AIBenchy – Independent AI Leaderboard

https://aibenchy.com
1•XCSme•37m ago•1 comments

Taste for Makers

https://paulgraham.com/taste.html
3•avonmach•39m ago•1 comments

Thin Is In

https://stratechery.com/2026/thin-is-in/
1•maguay•40m ago•0 comments

Other money making uses for the DGX Spark?

1•JerichoJones•42m ago•1 comments

A Guide to Which AI to Use in the Agentic Era

https://www.oneusefulthing.org/p/a-guide-to-which-ai-to-use-in-the
2•Hyeonjong•42m ago•0 comments

Hive – LangGraph for Swift, but built on BSP supersteps

https://github.com/christopherkarani/Hive
1•ckarani•43m ago•1 comments

Show HN: Start an Apple Container in Seconds

https://github.com/beachdevs/container
1•dpweb•44m ago•0 comments

Browser-based Whisper transcription using WebGPU and adaptive model selection

https://cowslator.space/
1•brunochavesj•45m ago•1 comments

Tidal Heating of Io

https://en.wikipedia.org/wiki/Tidal_heating_of_Io
3•thunderbong•46m ago•0 comments

Show HN: Conduit: One Swift interface for every AI provider, on-device and cloud

https://github.com/christopherkarani/Conduit
1•ckarani•48m ago•0 comments

Visualizing how cancer drugs reshape proteins linked to lung cancer

https://phys.org/news/2026-01-visualizing-cancer-drugs-reshape-proteins.html
3•PaulHoule•49m ago•0 comments