frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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.

Trump's suddenly softened new green card policy

https://www.washingtonpost.com/business/2026/06/05/how-big-business-tech-ai-softened-trump-new-gr...
1•andsoitis•6m ago•0 comments

Staffing and procurement strategies for fast flow

https://www.youtube.com/watch?v=ECA0E7hdmYM
1•RebootStr•8m ago•0 comments

Update on Meteorra AI – Just Shipped YouTube Video Analyser

https://www.indiehackers.com/post/i-built-an-ai-that-tells-creators-who-will-watch-their-content-...
1•MeteorraAI•8m ago•0 comments

Built GoPeek for Firefox

https://addons.mozilla.org/en-US/firefox/addon/gopeek/
1•guptalog•9m ago•0 comments

Granite Libraries and Project Granite Switch – IBM Research

https://research.ibm.com/blog/granite-libraries-project-switch
1•shallow-mind•22m ago•0 comments

A new YC tool promises "your code never leaves your machine." It does

https://twitter.com/intcyberdigest/status/2063026347522539754
1•porridgeraisin•25m ago•0 comments

YC's launches Paxel a tool that analyzes your coding sessions

https://paxel.ycombinator.com/
2•qwe----3•27m ago•0 comments

How should we teach digital research workflows to undergrad philosophy students?

1•lebronocta•33m ago•0 comments

Wabi Tek Sabi

https://www.wabiteksabi.com/index.html
1•klez•33m ago•0 comments

Educational Sticker

https://apparatverk.studio/notes/educational-sticker/
2•px00•34m ago•0 comments

"Bricks & minifigs can stuff it" – Patreon CEO [video]

https://www.youtube.com/watch?v=36jxNeV5L1Q
1•ShinyLeftPad•36m ago•0 comments

Azure Linux Desktop

https://www.boxofcables.dev/azure-linux-desktop-a-build-2026-mashup-of-wslc-winui-reactor-and-azu...
1•haydenbarnes•37m ago•0 comments

Let the agents democratize open source

https://world.hey.com/dhh/let-the-agents-democratize-open-source-9fd630a9
1•teekert•42m ago•0 comments

Magecart skimmer turns Stripe into a malware command server

https://sansec.io/research/stripe-api-skimmer-infrastructure
1•berlianta•44m ago•0 comments

Verilator Binary for Windows Without WSL or VM or OSS-CAD Suite or Perl Wrapper

https://github.com/withlimon/verilator-windows
1•limondas•45m ago•1 comments

Fixing "unfixable" 41TB BTRFS by Claude's one-shot

https://mloduchowski.com/-mounted-bitter-fs-better-with-claude/
3•qdotme•49m ago•0 comments

Download cash counter and help me

https://play.google.com/store/apps/details?id=com.logicforge.bdcash&hl=en_US
1•bdcashcounter•54m ago•0 comments

Turn HAR Files, Claude Code, Copilot CLI, and Codex CLI Logs into ATIF

https://github.com/waldekmastykarz/atifact
1•waldekm•55m ago•0 comments

Show HN: Sidekick – The zot coding agent, one click away on macOS

https://github.com/patriceckhart/zot-sidekick
10•patriceckhart•56m ago•0 comments

How much did OpenAI pay for Tomoro?

https://www.aienablementinsider.com/p/how-much-did-openai-pay-for-tomoro
1•dylancollins•58m ago•0 comments

I Found the US Nuclear Detection System in Space (GPS)

https://www.youtube.com/watch?v=DjLnIb41DuQ
2•valeg•59m ago•0 comments

You can now use your Gmail account in Proton Mail

https://proton.me/blog/proton-mail-connect-gmail
3•Topfi•1h ago•0 comments

Integer Overflow in Postgres

https://www.crunchydata.com/blog/the-integer-at-the-end-of-the-universe-integer-overflow-in-postgres
2•tosh•1h ago•0 comments

AI coding agents use your technology

https://developer.microsoft.com/blog/how-ai-coding-agents-actually-use-your-technology
1•waldekm•1h ago•0 comments

The AX stack: what's fixed, where you can win

https://developer.microsoft.com/blog/the-ax-stack-whats-fixed-where-you-can-win
1•waldekm•1h ago•0 comments

New version of "peers" – the AI couple doing things

https://github.com/c0decave/peers
1•dash0r•1h ago•0 comments

Bitcoin back above $61,000 after rout leads to $1.6B liquidations

https://www.coindesk.com/markets/2026/06/06/bitcoin-back-above-usd61-000-after-rout-leads-to-usd1...
4•Varun-Sakhuja•1h ago•0 comments

Bitrig – The best way to build native Swift apps with AI

https://bitrig.com
1•Austin_Conlon•1h ago•0 comments

Are AI chatbots making us lose control of our brains?

https://www.technologyreview.com/2026/06/05/1138427/are-ai-chatbots-making-us-lose-control-of-our...
2•joozio•1h ago•0 comments

Adaptive Low-Rank Transformer with Dynamic Expert Routing for Continual Learning

https://zenodo.org/records/20064618
1•jballanc•1h ago•0 comments