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.

Superfile: Terminal File Manager

https://superfile.dev/
1•thunderbong•1m ago•0 comments

The oceans are full of heat, and it's coming ashore

https://grist.org/climate/heatwaves-oceans-record-temperatures-el-nino/
1•speckx•1m ago•0 comments

Show HN: chwire – Native-Format ClickHouse JavaScript Client over HTTP/TCP

https://github.com/maxjustus/chwire
1•maxjustus•2m ago•0 comments

Guy is banned by OpenAI for cyber abuse, his AI appeals, another AI approves it

https://twitter.com/endpointarena/status/2075245286339846145
1•binyu•3m ago•0 comments

An OpenAI model crushed top human programmers at a world coding competition

https://www.understandingai.org/p/an-openai-model-crushed-top-human
1•speckx•8m ago•0 comments

Do Smart Glasses Have a Surveillance Problem?

https://www.vogue.com/article/do-smart-glasses-have-a-surveillance-problem
2•cdrnsf•10m ago•0 comments

Casual Viewing: Why Netflix looks like that (2025)

https://www.nplusonemag.com/issue-49/essays/casual-viewing/
1•zem•12m ago•0 comments

An Update on the scraper situation

https://lwn.net/SubscriberLink/1080822/990a8a5e2d379085/
2•chmaynard•15m ago•0 comments

MAGA's attack on science is worse than it looks

https://www.noahpinion.blog/p/magas-attack-on-science-is-even-worse
2•gumby•16m ago•0 comments

Ask HN: Experiences of Working in Big Data

1•theginger•16m ago•0 comments

Capitalism Gone Wrong

https://kasperjunge.com/blog/capitalism-gone-wrong/
2•juunge•17m ago•0 comments

Earthkit v1.0 – Open-source tools for seamless earth science workflows

https://earthkit.ecmwf.int
1•giuliomagnifico•17m ago•0 comments

Shooting Starlink: The "no limits" partnership between Russia and China

https://theins.press/en/inv/294635
2•uxhacker•19m ago•2 comments

We reached 300 repos visualized

https://www.reddit.com/r/PrincipalAi/s/tN8cnUNHR3
2•fernando-ram•20m ago•0 comments

AI Pilling Our Company

https://twitter.com/neilrahilly/status/2075290325757608148
1•iacguy•20m ago•0 comments

The Worst Company

https://vowe.net/2026/07/10/the-worst-company/
1•doener•21m ago•0 comments

My two year old taught me constraint solving

https://thecomputersciencebook.com/posts/how-my-2yo-taught-me-constraint-solving/
1•bambataa•21m ago•0 comments

Show HN: Bunrun – agent-configured local dashboard to start/stop dev apps

https://github.com/jokkebk/bunrun
1•jokkebk•22m ago•0 comments

Cat Is Being Nice? Think Again

https://www.nytimes.com/2026/07/10/science/cat-grooming-licking-research.html
2•gumby•22m ago•0 comments

Citi wins bank support for tokenized deposit tools

https://www.americanbanker.com/payments/news/citi-wins-bank-support-for-tokenized-deposit-tools
1•petethomas•22m ago•0 comments

Mayor Mamdani Announces Landmark "Click-to-Cancel" Consumer Protection Rules

https://www.nyc.gov/mayors-office/news/2026/07/mayor-mamdani-announces-landmark--click-to-cancel-...
7•thisislife2•23m ago•2 comments

Squishy Face

https://www.viverse.com/A4tz3Qk
1•Eduard•23m ago•0 comments

Discovery could lead to brighter, more energy-efficient digital displays

https://news.mit.edu/2026/discovery-could-lead-brighter-more-energy-efficient-digital-displays-0710
1•gnabgib•23m ago•0 comments

Core dump epidemiology: fixing an 18-year-old bug

https://openai.com/index/core-dump-epidemiology-data-infrastructure-bug/
1•ot•26m ago•0 comments

New Research Indicates That in Future, Trees May Store Less Carbon Than Expected

https://lamont.columbia.edu/news/new-research-indicates-future-trees-may-store-less-carbon-expected
1•littlexsparkee•28m ago•0 comments

Chickadees cheat on their partner more with males better at navigation

https://elifesciences.org/reviewed-preprints/110905
1•marojejian•29m ago•1 comments

Retiring Group Chats in ChatGPT

https://help.openai.com/en/articles/12703475-retiring-group-chats-in-chatgpt
2•flyaway123•31m ago•0 comments

Flock threatens to sue private group in California that discusses diplomacy, law

https://bsky.app/profile/bennjordan.bsky.social/post/3mqcmjhtstc2y
4•cdrnsf•31m ago•3 comments

Four Day Work Week Statistics 2026: What the Data Shows

https://stealthagents.com/research/four-day-work-week-statistics-2026
1•momentmaker•32m ago•0 comments

Did you start a startup, then had to shut it down?

https://www.youtube.com/watch?v=wVhOCrlApwk
1•dsantbakshsing•33m ago•0 comments