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.

macOS Files and Folders System Settings Confusing UI

https://lapcatsoftware.com/articles/2026/7/12.html
1•speckx•39s ago•0 comments

Italy Blocks Reproductive Health Websites Women on Web and Women Help Women

https://ooni.org/post/2026-italy-blocks-wow-and-whw
1•miniBill•1m ago•0 comments

Show HN: I built an atlas linking genes, exposure, and disease by US county

https://genarch.org/
1•kiaansaraiya•2m ago•0 comments

Show HN: Daily competitor-change briefs for local businesses

https://myintelbrief.com/
1•chooklay•4m ago•1 comments

Controlling your home with tiny, cheap touchscreens

https://a.wholelottanothing.org/controlling-your-home-with-tiny-cheap-touchscreens/
2•speckx•6m ago•0 comments

When sine of x degrees equals sine of x radians

https://www.johndcook.com/blog/2026/07/22/degrees-radians/
2•surprisetalk•6m ago•0 comments

Real AI changed the way I see fictional AI

https://diels-daydreams.bearblog.dev/real-ai-changed-the-way-i-see-fictional-ai/
1•nivethan•6m ago•0 comments

Why a $154B CEO just endorsed stripping most Americans of voting rights

https://fortune.com/2026/07/27/shopify-ceo-voting-rights-stripping-americans-19th-century/
8•imzadi•6m ago•0 comments

Show HN: Shoebox Plus Organizer – search, sort, and filter your Ancestry Shoebox

https://chromewebstore.google.com/detail/shoebox-plus-organizer/ncmfpkikgbnacbiipnbnfdohjpbgjjkh
1•ThroughTheTrees•6m ago•0 comments

Show HN: StashDog – Modeling physical belongings as searchable data

https://stashdog.io/
1•plasticdroid•7m ago•0 comments

You Still Get Personalized Ads Even After Turning Off Your Microphone and Camera

https://twitter.com/TrustKernelTech/status/2082088703002816566
2•PlugMate•7m ago•0 comments

ClickHouse's Hidden Built-In Dashboards

https://bx2.me/notes/clickhouses-hidden-built-in-dashboards/
2•giulianopz•8m ago•0 comments

From Moon Craters to Martian Dust

https://medium.com/@alanscottencinas/from-moon-craters-to-martian-dust-fd5fecb79834
1•encinas88•8m ago•0 comments

How far can you push the range of Wi-Fi connectivity in an ideal environment?

https://www.phidgets.com/?view=articles&article=LongRangeWifi
1•rzk•8m ago•0 comments

Show HN: Jarvis, a voice assistant that never leaves your network

https://github.com/alexberardi/jarvis
1•xanderwestside•8m ago•0 comments

New Fields medalist, Jacob Tsimerman, leaving research math to work at OpenAI

https://www.math.columbia.edu/~woit/wordpress/?p=15787
1•bryan0•9m ago•0 comments

Over 24,000 exposed server BMCs leak password hash via decades-old flaw

https://www.bleepingcomputer.com/news/security/over-24-000-exposed-server-bmcs-leak-password-hash...
1•Brajeshwar•9m ago•0 comments

Mazebench

https://mazebench.com/blog?post=introducing-mazebench
1•fidotron•9m ago•0 comments

Show HN: Hiring Method – a deterministic, math-driven recruitment platform

https://hiring-method.com/
1•genekrapivin•9m ago•0 comments

Firefox 153 QWAC Certificate Verification: A New Line in Your Padlock Icon

https://qainsights.com/firefox-153-qwac-certificate-verification-a-new-line-in-your-padlock-icon/
1•qainsights•10m ago•0 comments

Memo-1: A 6502 computer built from scratch, using a Minitel as its terminal

https://github.com/MemoireMorte/Memo-1
2•sciences44•10m ago•0 comments

Show HN: S2Q – Stripe payouts posted into QuickBooks itemized, no subscription

https://s2q.now/
1•artproof•12m ago•0 comments

Goodbye File Browser, for Real This Time

https://hacdias.com/2026/07/28/filebrowser/
2•speckx•14m ago•0 comments

Show HN: WebCMD, a reusable CLI command layer for browser agents

https://github.com/agentrhq/webcmd
1•askadityapandey•15m ago•0 comments

Building Galley House

https://eviltrout.com/blog/2026-07-28-building-galley-house/
1•EvilTrout•17m ago•0 comments

Italian paradise island with no roads, no phone signal and almost no tourists

https://www.cnn.com/travel/palmarola-italy-island-no-tourists
1•mooreds•18m ago•0 comments

Where Crochet Meets Code: Fiber Arts and the History of Computing

https://redmonk.com/videos/abbey-perini/
1•mooreds•19m ago•0 comments

OpenAI Shares Some Alignment Problems

https://thezvi.substack.com/p/openai-shares-some-alignment-problems
1•gmays•19m ago•0 comments

Show HN: PolyBridge – a causal model for forecasting global events

https://polybridge.ai
1•pbforesight•22m ago•0 comments

Why haven't organoids solved all of drug discovery?

https://www.owlposting.com/p/why-havent-organoids-solved-all-of
2•crescit_eundo•22m ago•0 comments