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.

Show HN: RepoSquirrel – New release with deep PagerDuty and Git visualizations

https://github.com/reposquirrel/reposquirrel
1•reposquirrel•1m ago•0 comments

Show HN: It's a free vulnerability database that publishes fresh CVE data daily

https://www.threatroad.com/
2•levberg•9m ago•0 comments

We will ban you and ridicule you in public if you waste our time on crap reports

https://curl.se/.well-known/security.txt
4•latexr•9m ago•0 comments

Starting a Startup at 25, 35, or 45 Is Not the Same Decision

https://nauma.ai/blog/p/starting-a-startup-at-25-35-or-45
1•iliyanko•13m ago•0 comments

City Weather Explorer (3D comparison)

https://awjuliani.github.io/weather-explore/
1•emot•13m ago•0 comments

Animals Build a Sense of Direction

https://www.quantamagazine.org/how-animals-build-a-sense-of-direction-20260121/
1•ibobev•13m ago•0 comments

Mills Ratio and Tail Thickness

https://www.johndcook.com/blog/2026/01/21/mills-ratio/
1•ibobev•13m ago•0 comments

Applyra, Improve your app rankings – simply

https://www.applyra.io
1•krnelstudio•14m ago•0 comments

We've Optimised Ourselves into Loneliness

https://substack.com/@zarasurfs/p-182470784
1•ragnor•15m ago•0 comments

Scientists uncover how microbial consortia break down lignin

https://phys.org/news/2025-12-scientists-uncover-microbial-consortia-lignin.html
1•PaulHoule•15m ago•0 comments

Game Controller Designs Through the Years

https://www.goto10retro.com/p/game-controller-designs-through-the
1•ibobev•16m ago•0 comments

Ask HN: Can something motivate you to use an AI browser assistant?

1•ProtosGalaxias•16m ago•0 comments

ISO PDF spec is getting Brotli – ~20 % smaller documents with no quality loss

https://pdfa.org/want-to-make-your-pdfs-20-smaller-for-free/
2•whizzx•17m ago•0 comments

GM, Ford et al. Retreated on EVs, So Why Do They Deserve Tariff Protection? [video]

https://www.youtube.com/watch?v=mknvPo2XGic
1•xbmcuser•17m ago•0 comments

Show HN: YouTube App Centered Around Language Learning

1•yunusabd•18m ago•0 comments

Fake Founder Stories Are Warping Startup Expectations

https://webmatrices.com/post/the-success-theater-economy-how-fake-founder-stories-are-warping-sta...
1•bishwasbh•20m ago•0 comments

AI Harm Statistics Expert Analysis

https://thebulletin.org/2026/01/what-experts-can-learn-by-tracking-ai-harms/
1•schyzomaniac•22m ago•0 comments

VideoLAN showcases AV2 playback on a "normal" laptop with VLC 4

https://overclock3d.net/news/software/videolan-showcases-av2-playback-on-a-normal-laptop-with-vlc-4/
1•breve•23m ago•0 comments

Show HN: Swtchd.io no code tool to A/B test forms / landing pages

https://get.swtchd.io
1•skeam•23m ago•0 comments

Raspberry Pi Flash Drive

https://www.raspberrypi.com/news/raspberry-pi-flash-drive-available-now-from-30-a-high-quality-es...
1•pyprism•23m ago•0 comments

App Subscription Is Now My Weekend Project

https://rselbach.com/your-sub-is-now-my-weekend-project
1•todsacerdoti•23m ago•0 comments

Runjak.codes: An Adversarial Coding Test

https://runjak.codes/posts/2026-01-21-adversarial-coding-test/
1•todsacerdoti•24m ago•0 comments

Is Antigravity down? Agent terminated due to error

https://old.reddit.com/r/google_antigravity/comments/1qjpj33/is_antigravity_down_possible_global_...
1•serial_dev•24m ago•0 comments

Salazar a Governance and Compliance Cyber Resilience Solution

https://getsalazar.io
1•carlfranz•24m ago•0 comments

The mushroom making people hallucinate tiny humans

https://www.bbc.com/future/article/20260121-the-mysterious-mushroom-that-makes-you-see-tiny-people
1•1659447091•28m ago•0 comments

Pale Moon v34: Release Notes

https://www.palemoon.org/releasenotes.shtml
1•thisislife2•28m ago•0 comments

Debian's FreedomBox Blend promises an easier home cloud

https://www.theregister.com/2026/01/22/debians_freedombox_blend/
1•jjgreen•30m ago•0 comments

Show HN: Usagebar – Track Claude Code Usage from Your Menu Bar

https://usagebar.com
1•abrowniejr•30m ago•0 comments

Vanilla CSS vs. Tailwind for Custom Radios and Checkboxes

https://dwyer.co.za/static/tailwind-vanilla-css-custom-radio-checkbox.html
1•sixhobbits•30m ago•0 comments

How Meta Deploys AV1 on Facebook From Reels to Stories to Messenger

https://www.streamingmedia.com/Articles/ReadArticle.aspx?ArticleID=173123
1•breve•31m ago•0 comments