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•7mo 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•7mo 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•7mo 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: White Collar Agent = a computer-use AI agent with TUI interface

https://github.com/zfoong/WhiteCollarAgent
1•zfoong•6m ago•0 comments

Jupyter, ChatGPT, Copilot (Part 2): The Technical Guide to Jupyter Setup

https://omid.dev/2025/12/23/jupyter-technical-setup-guide/
1•omidfarhang•7m ago•0 comments

Are We Loong Yet?

https://areweloongyet.com/en/
1•todsacerdoti•8m ago•0 comments

Some Epstein files can be unredacted

https://old.reddit.com/r/law/comments/1ptlms6/some_epstein_files_can_be_unredacted/
5•amarcheschi•9m ago•0 comments

Zed: Dev Containers Support

https://zed.dev/docs/dev-containers
1•ahamez•11m ago•0 comments

1WebAnalytics, a Looker Alternative for Google Analytics

https://1webanalytics.com/
1•aleks5678•11m ago•1 comments

What are the best engineering blogs with real-world depth (no fluff)?

2•nishilpatel•12m ago•0 comments

I Ching Online – Ancient Divination and AI Interpretation

https://i-ching-online-ai.com/
1•wuanzhu•13m ago•0 comments

Fasttfidf: High-performance TF-IDF vectorization for large-scale text datasets

https://github.com/purijs/fasttfidf
1•jspuri•15m ago•0 comments

Gimp Source Code

https://gitlab.gnome.org/GNOME/gimp
2•roschdal•16m ago•0 comments

How best to use Browser/Chrome with Claude for testing and debugging

1•jaigupta•18m ago•0 comments

Why Quantum Cryptanalysis Is Bollocks

https://www.youtube.com/watch?v=xa4Ok7WNFHY
2•todsacerdoti•20m ago•0 comments

Many of the "redacted" PDFs from the Epstein files aren't redacted

https://twitter.com/vmfunc/status/2003292986650853825
1•benrmatthews•29m ago•0 comments

Could an electric blanket save you £4k this winter?

https://www.freelanceinformer.com/cost-of-living/could-an-electric-blanket-really-save-you-4000-t...
1•tiberius_p•32m ago•0 comments

How We Extract Hidden Operational Data

https://deepwalker.xyz/blog/google-maps-hidden-data
1•m00dy•33m ago•0 comments

Responsive Doesn't Mean Yes

https://holenventures.substack.com/p/responsive-doesnt-mean-yes
2•hholen•34m ago•1 comments

Evolution of Decentralization [video]

https://www.youtube.com/watch?v=A2akRm_Nf-c
1•eddieoz•35m ago•0 comments

DACs and ADCs, or there and back again

https://lcamtuf.substack.com/p/dacs-and-adcs-or-there-and-back-again
1•weinzierl•41m ago•0 comments

New Browser FS library based on OPFS

https://www.npmjs.com/package/@componentor/fs
1•steffanhalv•45m ago•0 comments

Carnap – A formal logic framework for Haskell

https://carnap.io/
6•ravenical•45m ago•0 comments

Show HN: ASCII Canvas for AI Context

https://github.com/Sayhi-bzb/ascii-canvas
2•uSayhi•47m ago•1 comments

SEO VS GEO:I tried to studied GEO this week and found something interesting

https://amplift.ai/
1•icetearun•49m ago•1 comments

Trump announces new class of U.S. battleships named after himself

https://www.nbcnews.com/politics/national-security/trump-class-battleships-nuclear-navy-john-phel...
4•adwmayer•52m ago•1 comments

FCC Bans All Foreign and DJI Drones: America Just Made Itself Weaker, Not Safer

https://dronexl.co/2025/12/22/fcc-bans-all-foreign-and-dji-drones/
2•danboarder•57m ago•1 comments

Dark Forest Theory and Multi-Agent Reinforcement Learning (2023)

https://hal.science/hal-04174783/
2•hamburgererror•58m ago•1 comments

Why were all stories about the '60 minutes' leak removed from HN?

9•xerp2914•58m ago•8 comments

Show HN: SVG to WebP – bulk conversion that runs locally in the browser

https://svgtowebp.org
1•kuzej•59m ago•0 comments

Santiago Calatrava's Gare de Mons Station Opens in Belgium

https://parametric-architecture.com/gare-de-mons-station-belgium/
1•zeristor•1h ago•1 comments

Poisoned WhatsApp API package steals messages and accounts

https://www.theregister.com/2025/12/22/whatsapp_npm_package_message_steal/
1•beardyw•1h ago•0 comments

Faceless (2007 Film)

https://en.wikipedia.org/wiki/Faceless_(2007_film)
1•GaryBluto•1h ago•0 comments