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.

The Future of Stack Overflow

https://waspdev.com/articles/2026-01-09/the-future-of-stack-overflow
1•senfiaj•1m ago•0 comments

America is falling out of love with pizza

https://www.msn.com/en-us/money/companies/america-is-falling-out-of-love-with-pizza/ar-AA1Tziyh
1•jnord•2m ago•0 comments

The Abstraction Trap: Why Layers Are Lobotomizing Your Model

1•blas0•3m ago•0 comments

Tell HN: X changed its Iran flag emoji

1•michaeltimo•3m ago•0 comments

Italy Fines Cloudflare for Refusing to Filter Pirate Sites on Public 1.1.1.1 DNS

https://torrentfreak.com/italy-fines-cloudflare-e14-million-for-refusing-to-filter-pirate-sites-o...
2•jnord•3m ago•0 comments

Start your meetings at 5 minutes past

https://philipotoole.com/start-your-meetings-at-5-minutes-past/
1•otoolep•5m ago•0 comments

Nano-VLLM

https://huggingface.co/blog/zamal/introduction-to-nano-vllm
1•zansara•5m ago•0 comments

A Brief, Incomplete, and Mostly Wrong History of Programming Languages

http://james-iry.blogspot.com/2009/05/brief-incomplete-and-mostly-wrong.html
2•piinbinary•5m ago•0 comments

Show HN: Vect AI– Replace your marketing agency with autonomous agents

https://vect.pro/
3•MMAFRAZ•6m ago•0 comments

Show HN: I built an app that blocks social media until you read Quran daily

2•kalyfacloud•6m ago•0 comments

'Money mule' cases surge as criminals target young people on social media

https://www.theguardian.com/money/2025/dec/22/money-mule-cases-surge-as-criminals-target-young-pe...
2•PaulHoule•9m ago•0 comments

Personal Websites with a /now Page

https://nownownow.com/
2•susam•10m ago•0 comments

Ask HN: What useful skills can be learned through rote memorization?

1•blev•11m ago•1 comments

Mini SGLang

https://github.com/sgl-project/mini-sglang
1•zansara•11m ago•0 comments

Genetic inheritance for animals in Dwarf Fortress

https://old.reddit.com/r/dwarffortress/comments/1q8bagk/does_size_matter_lets_breed_colossal_rabb...
1•danso•11m ago•0 comments

How to Record on iPhone with Face Cam [video]

https://www.youtube.com/watch?v=Xzk0-AtH1ZU
1•admtal•12m ago•0 comments

When Will Robots Go Mainstream

https://colossus.com/article/when-will-robots-go-mainstream/
2•nickswalker•14m ago•0 comments

K8o5 decentralized universal search engine 1 HTML

https://k8o5.com
1•k8o5•16m ago•0 comments

Nominations for Words of the Year 2025

https://americandialect.org/nominations-for-words-of-the-year-2025/
1•mrzool•16m ago•0 comments

Show HN: Affordable Attack Surface Management tool for everyone

https://threat-surface.com
1•Frankbb•17m ago•0 comments

Trump says the United States will take Greenland the "easy way" or "hard way"

https://twitter.com/BRICSinfo/status/2009739940670660993
6•amrrs•17m ago•0 comments

Non-Traditional Profiling

https://www.mgaudet.ca/technical/2026/1/8/non-traditional-profiling
1•mgaudet•22m ago•0 comments

OpenAI is allowing 3rd-party coding agents to use Codex API keys

https://twitter.com/thdxr/status/2009742070471082006
3•vmg12•22m ago•0 comments

A lawsuit says Workday's AI shut out applicants over 40

https://san.com/cc/workday-hires-for-millions-a-lawsuit-seeking-plaintiffs-says-its-ai-shut-out-a...
11•SunshineTheCat•22m ago•0 comments

People in Brazil are living past 110 and scientists want to know why

https://www.sciencedaily.com/releases/2026/01/260107225527.htm
4•mmaia•25m ago•0 comments

WhatsApp Ate My RAM: 20MB →3GB (WTF Meta?) [video]

https://www.youtube.com/watch?v=1IkGgr6xCkQ
1•senfiaj•25m ago•0 comments

Web Du Bois on the beauty of sorrow songs (1903)

https://www.laphamsquarterly.org/music/unforgettable
1•nz•26m ago•0 comments

Every product still shipping buttons is legacy

https://fortunate-anchovy-938.notion.site/Every-product-still-shipping-buttons-is-already-legacy-...
2•cmdtab•27m ago•1 comments

Show HN: Lshort – Real-time link tracking with globe visualization

https://app.lshort.sh/online
1•develiasolie•29m ago•0 comments

Hermit-AI – An offline, privacy-first RAG chatbot for ZIM files

1•ImDelivered•32m ago•0 comments