frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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: Fluxnation, the Fastest FLUX.1 Execution Kernel

https://github.com/ULT7RA/FLUXNATION
1•KnoxProtocol•1m ago•0 comments

Taking OCaml and Eio for a Spin

https://mattjhall.co.uk/posts/taking-ocaml-eio-for-a-spin.html
1•mattjhall•3m ago•0 comments

The Java Story | Official Documentary

https://www.youtube.com/watch?v=ZqGSg4b_cZA
2•doppp•3m ago•0 comments

Distro Fighter – web browser game

https://distrofighter.com/
1•ashitlerferad•3m ago•0 comments

Swedbank fined $50M by New York authorities over Panama Papers revelations

https://www.icij.org/investigations/panama-papers/swedbank-fined-50-million-by-new-york-authoriti...
1•robtherobber•5m ago•0 comments

Show HN: Tool to help old Java projects not on modern build systems

https://maven-tools.mohants.com/
1•pmg1991•6m ago•0 comments

Show HN: GeoChess – open-source geography strategy game

https://geochess.org
1•spider-hand•8m ago•0 comments

How much of your workweek goes the way you expected? [pdf]

https://www.microsoft.com/en-us/research/wp-content/uploads/2024/11/Time-Warp-Developer-Productiv...
1•akarshhegde18•8m ago•0 comments

The M5Stack Tab5

https://taoofmac.com/space/reviews/2026/07/18/1920
1•rcarmo•13m ago•0 comments

Ask HN: Are there any new competitors to Google search in 2026?

1•roschdal•21m ago•2 comments

EU Exempts Apple Watch and AirPods from Battery Removal Requirements

https://mjtsai.com/blog/2026/07/17/eu-exempts-apple-watch-and-airpods-from-battery-removal-requir...
2•miohtama•25m ago•0 comments

AI Watermark Evidence Fails Forensic Readiness: An Empirical Evaluation

https://arxiv.org/abs/2607.16010
1•sbulaev•28m ago•0 comments

A Lunch Conversation Changed My Website

https://ammar-najjar.com/blog/rebuilding-website-astro/
1•ammarnajjar•29m ago•0 comments

Is there even a ground-truth for LLMs' internal representations?

https://www.lesswrong.com/posts/EetjXEwjR2eun2mAc/is-there-even-a-ground-truth-for-llms-internal
2•joozio•33m ago•0 comments

PixelSat I Software Part 3: Onboard Computer

https://www.projectpixelorbital.com/software-3/
1•aadishv•34m ago•0 comments

I compared 5 AI coding subscriptions by pricing model and usage limits

https://canopywave.com/blog/best-ai-coding-plans-2026-pricing-limits-use-cases
2•Rossmax•36m ago•0 comments

Britain: A Cautionary Tale for America

https://www.noahpinion.blog/p/the-uk-is-a-cautionary-tale-for-the
3•barry-cotter•41m ago•1 comments

Claude Fable 5 on your plan

https://support.claude.com/en/articles/15424964-claude-fable-5-on-your-plan
4•tidbeck•42m ago•1 comments

Notes from Inside China's AI Labs

https://www.interconnects.ai/p/notes-from-inside-chinas-ai-labs
2•hunglee2•42m ago•0 comments

The Jacobian Conjecture Is False per Anthropic

https://old.reddit.com/r/math/comments/1v1aix1/the_jacobian_conjecture_is_false_per_anthropic/
3•georgeven•50m ago•0 comments

Square Right Pyramid Volume (Height = Base) Visually

https://www.youtube.com/watch?v=5rJHidOvuvc
1•vismit2000•51m ago•0 comments

The Life and Times of Maxis, Part 2: SimWorld

https://www.filfre.net/2026/07/the-life-and-times-of-maxis-part-2-simworld/
2•zetamax•52m ago•0 comments

Identical quadruplets in 'one of the rarest births in the world'

https://www.abc.net.au/news/2026-07-20/identical-quadruplets-birth-brisbane/106935748
2•asdefghyk•52m ago•2 comments

First evidence of WordPress wp2shell exploit being used in the wild

https://twitter.com/rahulgovind517/status/2078998010969866538
2•rahulgovind517•54m ago•1 comments

Better Agent Leagues and Decision Supervision from Branched Rollouts

https://gertlabs.com/blog/verdict
2•gertlabs•1h ago•0 comments

NYC LL144 and EU AI Act Compliance Guides

https://www.nyc144euaiact.com
1•Haiec•1h ago•0 comments

Remarkable icefish nests found under Antarctic ice

https://oceanographicmagazine.com/news/thousands-of-remarkable-icefish-nests-found-under-antarcti...
2•teleforce•1h ago•0 comments

Project Euler Problems 1–100

https://github.com/norvig/pytudes/blob/main/ipynb/Euler.ipynb
1•vismit2000•1h ago•0 comments

China's mysterious new billionaires are conquering the world

https://www.economist.com/business/2026/07/19/chinas-mysterious-new-billionaires-are-conquering-t...
3•andsoitis•1h ago•0 comments

Apopo: 100M Square Meters Cleared of Landmines

https://apopo.org/apopo-reaches-milestone-in-landmine-clearance/
1•thunderbong•1h ago•0 comments