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.

Appropriate Technology

https://en.wikipedia.org/wiki/Appropriate_technology
1•Atiscant•1m ago•0 comments

Horsewood (USA and Canada) Scam or Legit Male Performance Supplement?

https://finance.yahoo.com/sectors/healthcare/articles/horsewood-urgent-report-2026-horse-19110038...
1•gapusart•12m ago•0 comments

A Rust trading bot for Polymarket, 800µs decision loop

https://github.com/casatrick/polymarket-arbitrage-bot
3•casatrick•13m ago•0 comments

TurboPrefill: 2.7× faster than llama.cpp Pipeline Parallel on Llama-3-70B

https://github.com/ggml-org/llama.cpp/pull/24219
1•trykhlieb•14m ago•0 comments

The Pregnancy and Health Apps Still Leaking Data in 2026

https://arxiv.org/abs/2606.26276
3•ddxv•15m ago•1 comments

Toys from Trash

https://www.arvindguptatoys.com/toys-from-trash.php
1•noufalibrahim•15m ago•0 comments

AI and Mathematics Research – Yikes (N.J. Wildberger)

https://www.youtube.com/watch?v=-QlC4C6mPIw
1•nyc111•16m ago•0 comments

The cost of AI is someone else's time

https://cephalosec.com/blog/the-hidden-cost-of-ai-is-someone-elses-time/
1•ilreb•17m ago•0 comments

Ozymandias on Rails. The Pedestal Inscription

https://baweaver.com/writing/2026/06/28/ozymandias-on-rails-the-pedestal-inscription/
1•Liriel•18m ago•0 comments

Show HN: I built an agent that uses email as a file system

https://www.supafax.com/
1•rohanmahen•22m ago•0 comments

The "I don't know, Claude wrote this" pandemic

https://newsletter.manager.dev/p/the-i-don-t-know-claude-wrote-this-pandemic
1•flail•25m ago•0 comments

Show HN: Ask your AI what changed across your competitors

https://industry-lens.com/mcp
1•IndustryLens•25m ago•0 comments

When Your IDE Becomes a RCE Endpoint

https://medium.com/trendyol-tech/when-your-ide-becomes-a-rce-endpoint-c87b85096b19
1•nofool•26m ago•0 comments

AI-native Formik alternative form library

https://fillament.dev
1•trialerror123•32m ago•0 comments

Getting Started with Rhombus

https://docs.racket-lang.org/rhombus-getting-started/index.html?fam=Rhombus&famroot=rhombus
1•azhenley•33m ago•0 comments

Ask HN: Sub 5 person team – Claude team plan?

1•anoop_kumar•35m ago•1 comments

Hand and Brain and Artificial Intelligence

https://www.theinternationalism.org/2026/02/hand-brain-artificial-intelligence.html
1•abbassix•40m ago•1 comments

Entertainment Software Association: "Minecraft private servers are illegal" [video]

https://www.youtube.com/watch?v=RgmtdeBIZ2s
1•krige•41m ago•0 comments

Show HN: Markdific – A lightweight Markdown viewer for non-technical users

https://markdific.com/
1•Sharanxxxx•42m ago•0 comments

Mrs. Cotton

https://mrscotton.mjanssen.nl/
1•marc0janssen•43m ago•1 comments

Real Estate AI Reverse Image Search

https://jitty.com/post/reverse-image-search
1•steveharrison•44m ago•1 comments

I helped build adtech's tracking tools. They're on government sites now

https://cairn.com/news/the-counter
4•douglasgoodwin•46m ago•0 comments

Pulse – a lightweight uptime and API monitor I built solo

https://pulse-c751.onrender.com/
1•IsakSandberg•49m ago•0 comments

Show HN: WidgetAI – Design iOS widgets in plain English, no Xcode

https://www.getwidgetai.com
1•bring-shrubbery•51m ago•0 comments

Show HN: TypeScript/JavaScript as interactive isometric circuit board

https://artpar.github.io/solderless/
1•artpar•54m ago•0 comments

Ask HN: ASICs made GPU crypto mining obsolete. Will ASICs for AI be a thing?

1•unpopularopp•54m ago•1 comments

Elementor cuts 100 jobs, 30% of workforce, as AI reshapes website building

https://www.calcalistech.com/ctechnews/article/sycgn6yxze
1•taubek•56m ago•1 comments

Wero Tracker – European Payment Adoption Progress

https://www.werotracker.eu/
2•komape•57m ago•0 comments

Show HN: Cloud Inefficiency Audit – a local CLI to audit your Hetzner bill

https://github.com/gelkao/cloud-inefficiency-audit
1•dominikz•58m ago•1 comments

Pieter Levels' Data Shows Negative Posts Get 2.5x More Views

https://x.com/i/trending/2071612403301683379
3•vantareed•1h ago•0 comments