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•8mo 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•8mo 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•8mo 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.

AI Assisted Interviews

https://www.spakhm.com/ai-interviews
1•coffeemug•1m ago•0 comments

Show HN: The Profanity API – Context-aware content moderation

https://the-profanity-api.com/docs
1•Olehype•3m ago•0 comments

Tomo: A statically typed, imperative language that cross-compiles to C [video]

https://www.youtube.com/watch?v=-vGE0I8RPcc
1•evakhoury•3m ago•0 comments

The Clawdbot (Moltbot) Enterprise AI Risk: One in Five Have It Installed

https://www.token.security/blog/the-clawdbot-enterprise-ai-risk-one-in-five-have-it-installed
1•thoughtpeddler•3m ago•0 comments

OpenStreetMap: Everything Everywhere All at Once

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

Half of Kubernetes Clusters Are About to Lose Security Updates

https://thelandsca.pe/2026/01/29/half-of-kubernetes-clusters-are-about-to-lose-security-updates/
1•sylvainkalache•8m ago•0 comments

Loopy: A filesystem API over a single Python string

https://github.com/tg1482/loopy
1•tg1482•9m ago•1 comments

Networks Hold the Key to a Decades-Old Problem About Waves

https://www.quantamagazine.org/networks-hold-the-key-to-a-decades-old-problem-about-waves-20260128/
1•makira•12m ago•0 comments

ServiceNow Stock Tumbles 50% in a Year: Good Earnings Don't Stop 'Death of SaaS'

https://www.salesforceben.com/servicenow-stock-tumbles-50-in-a-year-good-earnings-dont-stop-death...
2•xnx•13m ago•0 comments

The 'Busy' Trap (2012)

https://archive.nytimes.com/opinionator.blogs.nytimes.com/2012/06/30/the-busy-trap/
1•thoughtpeddler•14m ago•0 comments

Using AI Engines for DSP [pdf]

https://reach.avnet.com/rs/730-NST-988/images/AVNET-ADIUVO-AMD-AIE%20for%20DSP%20White%20Paper-FI...
1•signalhound•20m ago•0 comments

You can code only 4 hours per day. Here's why

https://newsletter.techworld-with-milan.com/p/you-can-code-only-4-hours-per-day
5•birdculture•21m ago•0 comments

Bun: New Markdown parser has builtin support for rendering to React

https://twitter.com/jarredsumner/status/2016733616743862462
2•tosh•22m ago•0 comments

Open Gaming Collective

https://opengamingcollective.org/
1•pentagrama•22m ago•0 comments

Gourmand Syndrome

https://en.wikipedia.org/wiki/Gourmand_syndrome
1•ag8•22m ago•0 comments

Building the Skyline: The Birth and Growth of Manhattan's Skyscrapers

https://buildingtheskyline.org/
1•danielam•25m ago•0 comments

Apple acquires Israeli audio AI startup Q.ai

https://www.reuters.com/business/apple-acquires-audio-ai-startup-qai-2026-01-29/
8•tosh•26m ago•1 comments

Ask HN: Who here works with just a laptop?

1•hu3•26m ago•0 comments

We Ran 11 AI PR Bots in Production

https://loganharless.com/blog/ai-pr-bot-rankings
1•myhandleisbest•27m ago•1 comments

Students Are Finding New Ways to Cheat on the SAT

https://www.nytimes.com/2026/01/28/us/politics/how-the-online-sat-may-be-vulnerable-to-cheating.html
3•JumpCrisscross•27m ago•2 comments

Show HN: Transcribee: YouTube transcriber that builds a knowledge base

https://github.com/itsfabioroma/transcribee
2•ofabioroma•28m ago•0 comments

PlayStation 2 Recompilation Project Is Absolutely Incredible

https://redgamingtech.com/playstation-2-recompilation-project-is-absolutely-incredible/
3•croes•28m ago•0 comments

The dev who asks too many questions is the one you need in your team

https://leadthroughmistakes.substack.com/p/the-teammate-who-asks-too-many-questions
4•birdculture•29m ago•0 comments

Cisco AI Agent Skills Security Scanner

https://github.com/cisco-ai-defense/skill-scanner
2•hsanthan•29m ago•0 comments

SpaceX in Merger Talks with xAI

https://www.reuters.com/world/musks-spacex-merger-talks-with-xai-ahead-planned-ipo-source-says-20...
14•m-hodges•30m ago•1 comments

Magit

https://magit.vc/
2•tosh•31m ago•0 comments

Agent Swarms, like the one Cursor created

https://mrinal.com/articles/agent-swarms-like-the-one-cursor-created/
1•rdegges•31m ago•0 comments

Anna's Archive is sued for $13T

https://www.nme.com/news/music/spotify-major-record-labels-sue-annas-archive-13trillion-allege-br...
9•antonmks•32m ago•4 comments

Light the Nuclear Candle – Incautious Optimism

https://jordanwtaylor2.substack.com/p/light-the-nuclear-candle
1•bilsbie•32m ago•0 comments

We created more tech debt in 6 months than in a 10-year-old system

https://superkacper4.github.io/portfolio-2023/blog/technical-debt-everyday
1•superkacper4•33m ago•0 comments