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: A browser extension to identify and rate webpages with AI contet

https://chromewebstore.google.com/detail/slopwatch-the-online-watc/nihlmmcfkabobchdpjimenhcfmaoglkj
1•HademLeFashie•2m ago•0 comments

A Theory of Contrastive Learning with Natural Images

https://arxiv.org/abs/2607.07470
2•E-Reverance•3m ago•0 comments

Google Earth Pro desktop downloads will end in 2027

https://support.google.com/earth/thread/448773864/update-on-google-earth-pro-desktop-app-download...
1•linzhangrun•8m ago•0 comments

How to Listen to a Tarantino Movie

https://hollisrobbinsanecdotal.substack.com/p/how-to-listen-to-a-tarantino-movie
1•HR01•9m ago•0 comments

The DuckDB ADBC Extension

https://columnar.tech/blog/announcing-duckdb-adbc-extension//
1•jonbaer•9m ago•0 comments

Superhero Movies Lost Their Power

https://www.statsignificant.com/p/how-superhero-movies-lost-their-power
1•jmsflknr•13m ago•0 comments

Argentina to Repay $4B, Defying Critics Who Doubted Tack

https://www.bloomberg.com/news/articles/2026-07-08/argentina-to-repay-4-billion-defying-critics-w...
1•petethomas•17m ago•0 comments

AI Stack Gap Map

https://www.currentai.org/blogs/introducing-the-gap-map-v0-1
1•colinprince•17m ago•0 comments

Together for a Healthier Clippy

https://blog.rust-lang.org/inside-rust/2026/07/06/unite-for-clippy/
2•droidjj•18m ago•0 comments

Show HN: I mapped 8.5M research papers into interactive atlas

https://tomesphere.com/atlas
1•leonickson•20m ago•0 comments

I was tired of all false claims, so I built Atelier, honest 30% saving on CC.

https://github.com/atelier-ws/atelier
1•pankaj4u4m•21m ago•1 comments

What Does a 13-Year-Old See on Snapchat in a Normal Week?

https://www.afterbabel.com/p/snapchat-recommends-harmful-content-kids-brooke-istook-2026
4•dgudkov•21m ago•1 comments

Product Shape Is the Moat

https://twitter.com/scottastevenson/status/2072336746327458178
2•gmays•25m ago•0 comments

Jellyfish Undersea Roundabout

https://visitfaroeislands.com/en/plan-your-stay/getting-around/world-first-under-sea-roundabout
2•hydrogen7800•25m ago•0 comments

Show HN: I solved biggest issue for the mainatiners of GitHub

2•RajX_dev•27m ago•0 comments

Auto compiles recorded LLM-agent behavior into verified WASM binaries

https://github.com/RightNow-AI/auto
1•mooreds•31m ago•0 comments

The AI Hype Reckoning Is Upon Us

https://karlbode.com/the-ai-hype-reckoning-is-upon-us/
3•cratermoon•34m ago•1 comments

We Mapped Rural Data Center Development – and Opposition

https://dailyyonder.com/we-mapped-rural-data-center-development-and-opposition-heres-what-we-foun...
1•cdrnsf•34m ago•0 comments

Tiiny.host: The simplest way to share your work online

https://tiiny.host/
1•thunderbong•38m ago•0 comments

Athenz vs. Spire Comparison

https://www.athenz.io/comparison.html#general
1•mooreds•39m ago•0 comments

Nobel-winning chemist leaves US to direct AI materials lab in China

https://www.nature.com/articles/d41586-026-02143-x
3•sbulaev•40m ago•1 comments

Show HN: Couldn't find a complete Codenames Generator so I make one

https://codenames-generator-bay.vercel.app/
1•tnus•42m ago•1 comments

OpenAI Launches Patch the Planet to Pay Down Open Source's Security Debt

https://zenaicorp.com/en/news/openai-patch-the-planet-open-source-security-trail-of-bits
2•zenai666•44m ago•0 comments

.38

https://www.guidavid.com/writing/38
2•gdss•45m ago•0 comments

I Think I Have LLM Burnout

https://www.alecscollon.com/blog/llm-burnout/
68•sosodev•47m ago•41 comments

Artificial Confidence: They all picked September first

https://artificialconfidence.com/p/artificial-confidence-they-all-picked
1•Corrado•48m ago•1 comments

Network Connectivity Status Indicator Overview for Windows

https://learn.microsoft.com/en-us/windows-server/networking/ncsi/ncsi-overview
1•ankitg12•48m ago•0 comments

Show HN: RepoFleet – manage issues that span multiple Git repositories

https://github.com/mehranzand/repofleet
1•mehranzand•49m ago•0 comments

Show HN: Python SDK for Content Integrity

https://github.com/lyfeninja/lyfeninja_blkseal_python_sdk
1•lyfeninja•52m ago•0 comments

Growth Marketing Jobs – growth, CRO, SEO, and performance marketing roles

https://www.growthmarketingjobs.xyz
1•hafizdhanani•53m ago•1 comments