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.

New Irctc Website Launched

https://www.news18.com/india/new-irctc-website-beta-version-features-faster-ticket-booking-102140...
1•ishweta•52s ago•0 comments

New Look for Axiom: with interactive illustrations, micro-interactions

https://axiom.co
1•gurbinder•2m ago•0 comments

Jira launches system for AI-native software development

https://www.atlassian.com/blog/company-news/ai-sdlc
1•foxh0und•2m ago•1 comments

Cross-cultural value frameworks, applied to individual relocation matching

https://kinship.my
1•lapshov•3m ago•0 comments

How to Talk About Tech as Tech Workers

https://hilaryagro.com/2026/02/18/we-cannot-have-a-rational-debate-about-technology/
1•theroadnotbacon•3m ago•1 comments

Agents don't belong in your codebase

https://www.empirical.run/blog/agent-runtime/
1•arjun27•3m ago•0 comments

MN solar wildflowers 20x'd native bees, which pollinated neighbor soybeans

https://www.ecoportal.net/en/two-minnesota-solar-farms-native-wildflowers/29160/
1•speckx•4m ago•0 comments

Hegseth Orders Mandatory Testosterone Screening, Optional TRT for Troops 30

https://www.military.com/hegseth-orders-mandatory-testosterone-screening-optional-trt-troops-30-o...
1•toomanyrichies•4m ago•0 comments

Yes, your combo bet on Kalshi probably sucks

https://napkinbook.com/blog/yes-your-combo-bet-sucks
1•tccole•6m ago•1 comments

We'll Take the Benefits, Hold the Rules

https://docs.eventsourcingdb.io/blog/2026/07/16/well-take-the-benefits-hold-the-rules/
1•goloroden•9m ago•1 comments

Risk-Averse AIs

https://www.forethought.org/research/risk-averse-ais
1•paulpauper•9m ago•0 comments

Beeper: All your chats in one app

https://www.beeper.com/
1•thunderbong•9m ago•0 comments

Can Africa take the Asian path to growth?

https://www.economist.com/middle-east-and-africa/2026/07/09/can-africa-take-the-asian-path-to-growth
1•paulpauper•9m ago•0 comments

The Berlin team making books look well-read

https://www.irishtimes.com/business/2026/07/15/we-all-have-unread-books-berlin-based-ageing-treat...
1•paulpauper•9m ago•0 comments

TaskLoco is the ToDo app that is completely different; it's VISUAL

https://www.taskloco.com/
1•taskloco_nyc•10m ago•0 comments

Huhi

1•KREO_•11m ago•0 comments

'Rust makes coding fun again': Why Linux is moving away from C

https://www.zdnet.com/article/greg-kroah-hartman-linux-kernel-rust/
3•CrankyBear•12m ago•1 comments

Permutation generation methods (1977) [pdf]

https://sedgewick.io/wp-content/themes/sedgewick/papers/1977Permutation.pdf
1•measurablefunc•13m ago•0 comments

What is this dark line in the sky?

https://www.reddit.com/r/Astronomy/s/Ur1s1v8pLP
1•nixass•15m ago•0 comments

Brainless: Shadcn components that look like Claude Code, Codex and Grok

https://brainless.swerdlow.dev
3•benswerd•17m ago•0 comments

What a $50 digicam does that a $1000 iPhone can't [video]

https://www.youtube.com/watch?v=7g2qCBjLljo
3•devonnull•18m ago•0 comments

Voxatron

https://www.lexaloffle.com/voxatron.php
1•lsferreira42•19m ago•0 comments

Over The Edge 2.0: what indie researchers found about browser choice on Windows

https://blog.mozilla.org/en/mozilla/browser-choice-windows-report-over-the-edge-2/
1•gnabgib•20m ago•0 comments

New normal? the US has suffered a major power outage EVERY month of 2026

https://electrek.co/2026/07/15/new-normal-the-us-has-suffered-a-major-power-outage-every-month-of...
2•Bender•20m ago•1 comments

Show HN: Agent use 83.1% fewer turns; 16.7 percentage points higher success

https://turaai.net
1•yohji1984•20m ago•0 comments

Show HN: Filtering engine and DB for unpropagated kernel security patches

https://patchless.natey.sh
1•imbobbytables•21m ago•0 comments

Dark patterns in Windows are steering users to Edge: Mozilla-commissioned report

https://www.theregister.com/os-platforms/2026/07/15/dark-patterns-in-windows-are-steering-users-t...
4•Bender•22m ago•1 comments

Microsoft cancels Patch Tuesday for some Dell users shutdowns overheating

https://www.theregister.com/os-platforms/2026/07/15/microsoft-cancels-patch-tuesday-for-some-dell...
1•Bender•22m ago•0 comments

"Autism Is a Spectrum" Doesn't Mean What You Think (2019)

https://neuroclastic.com/its-a-spectrum-doesnt-mean-what-you-think/
4•downbad_•23m ago•0 comments

Epic Sues Health Information Exchange Network Alleging Improper Record Access

https://www.hipaajournal.com/epic-sues-health-information-exchange-network-improper-record-access
1•Jimmc414•25m ago•0 comments