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.

RIP Joshua Baer. Founder of Capital Factory, Austin incubator, died in jet crash

https://cbsaustin.com/news/local/capital-factory-ceo-joshua-baer-killed-in-plane-crash-near-lared...
1•dv35z•48s ago•1 comments

Typical Home Will Cost $1M as Millennials Hit Retirement, Economist Says

https://www.realtor.com/news/trends/home-prices-forecast-nar-lawrence-yun-2026/
1•littlexsparkee•48s ago•0 comments

Ukraine hits Moscow refinery again

https://www.reuters.com/world/europe/russia-attacks-kyiv-with-missiles-local-authorities-say-2026...
1•JumpCrisscross•6m ago•0 comments

Show HN: Automatically Validate Python Packages

https://pypi.org/project/validatedata/
1•EdwardK1•9m ago•1 comments

Maslul – Smart LLM router – one call, the right model

https://github.com/iliatankelevich/maslul
1•iliatankelevich•12m ago•0 comments

I Hate Compilers

https://xeiaso.net/notes/2026/anubis-wasm-vendor-binary/
9•xena•19m ago•0 comments

Introducing Vercel Connect

https://vercel.com/blog/introducing-vercel-connect
3•MaxLeiter•19m ago•0 comments

The Teachers Getting $50k Bonuses Thanks to a Meta Data Center

https://www.wsj.com/us-news/education/the-teachers-getting-50-000-bonuses-thanks-to-a-massive-met...
3•tzury•20m ago•0 comments

Cursor and SpaceX: In search of a complete loop

https://kwokchain.com/2026/04/23/cursor-and-spacex-in-search-of-a-complete-loop/
3•jxmorris12•22m ago•0 comments

SF landlord killed tenant to clear Sunset home for sale, lawsuit alleges

https://sfstandard.com/2026/06/17/lawsuit-alleges-sf-landlord-killed-tenant-clear-home-sale/
3•arkadiyt•24m ago•0 comments

Ask HN: I miss Fable, anyone else does?

2•vrinda13•25m ago•0 comments

Amazon S3 Annotations

https://aws.amazon.com/blogs/aws/amazon-s3-annotations-attach-rich-queryable-context-directly-to-...
3•jacobwg•25m ago•0 comments

Ask HN: What's a prompt you've written that you're genuinely proud of?

4•akashwadhwani35•30m ago•1 comments

Show HN: Attagram, a tiny printer that gives kids a magical daily digest

https://www.attagram.com/
3•mvkel•33m ago•1 comments

Eve from Vercel

https://vercel.com/eve
4•MehrdadKhnzd•36m ago•1 comments

Bet on Centaurs

https://ajkprojects.com/bet-on-centaurs.html
2•ashleynewman•41m ago•0 comments

The Leading Deepfake Expert No Longer Trusts His Own Eyes

https://www.nytimes.com/2026/06/14/us/ai-deepfake-hany-farid.html
2•gmargari•44m ago•1 comments

Sigil – tamper-evident audit and signed scopes for LLM prompts

https://github.com/mr-gl00m/sigil
2•mr_gl00m•47m ago•0 comments

GitSwitcher – a macOS menu bar app for switching Git identities

https://www.botworker.org/
1•easonxia•50m ago•0 comments

Vulnerability Disclosure: Stealing Emails via Firefox's AI Features

https://insinuator.net/2026/06/vulnerability-disclosure-stealing-emails-via-firefoxs-ai-features/
5•_____k•51m ago•1 comments

Show HN: I built a tool which turns any website into promo video in minutes

https://www.clickcast.tech/
1•modulusme•54m ago•1 comments

An event-driven AI pipeline using FastAPI, Redpanda, and Docker

https://github.com/Infodatamatrix/AIKafkaPipelineDemo
1•infodatamatrix•54m ago•0 comments

Cervical cancer mortality trends following HPV vaccination in England, 2001–24

https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(26)00918-9/fulltext
3•asplake•1h ago•1 comments

BBC to axe Radio 4's The World Tonight after more than 50 years

https://www.theguardian.com/media/2026/jun/17/bbc-boss-compulsory-redundancies-cuts
7•mellosouls•1h ago•2 comments

YaFF – High-performance C++ serialization library

https://github.com/yandex/yaff
1•Hixon10•1h ago•0 comments

The Next Computing Revolution May Come from Stacking Chips Like Skyscrapers

https://scitechdaily.com/the-next-computing-revolution-may-come-from-stacking-chips-like-skyscrap...
1•g-b-r•1h ago•0 comments

'Most famous tree in the world': Sherwood Forest's 1000-year-old Major oak dies

https://www.theguardian.com/environment/2026/jun/18/most-famous-tree-world-sherwood-forest-ancien...
9•mellosouls•1h ago•0 comments

GLM-5.2 is probably the most powerful text-only open weights LLM

https://simonwillison.net/2026/Jun/17/glm-52/
4•lumpa•1h ago•0 comments

Simpler, older version of Stonehenge found three miles from famous site

https://www.bbc.co.uk/news/articles/clyxw8550y8o
3•mellosouls•1h ago•2 comments

Interesting Google AI Results

https://www.google.com/search?q=nvm
2•throwaway_7678•1h ago•2 comments