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.

Ask HN: What is the long term purpose of Google releasing free offline models?

2•filup•5m ago•0 comments

Show HN: A Claude Code statusline that shows live World Cup scores

https://github.com/arturogarrido/claudinho
2•arturogarrido•6m ago•0 comments

macOS Golden Gate Icon Comparison

https://basicappleguy.com/basicappleblog/macos-golden-gate-icon-comparison
1•cocacola1•7m ago•0 comments

Zelle Heads to India, Unveils ZelleUSD Stablecoin for Other Markets

https://www.earlywarning.com/press-release/zelle-heads-india-unveils-zelleusd-stablecoin-other-ma...
2•clumsysmurf•17m ago•0 comments

We Use One Data Pipeline for Research and Live Trading

https://medium.com/@DolphinDB_Inc/from-factor-discovery-to-live-signals-unified-stream-batch-proc...
2•Polly_Liu•20m ago•0 comments

Show HN: GR Snap – wireless transfer for Ricoh GR cameras

https://grsnap.app/
2•ahonn•21m ago•0 comments

Rewrite Fuse-Overlayfs in Rust

https://github.com/containers/fuse-overlayfs/pull/457
1•a_t48•21m ago•1 comments

Learn with Your Coding Agent

https://learnthat-mcp-3bqygzrtsa-uc.a.run.app
1•azermite•23m ago•0 comments

Rust in the Vibe Coding Era

https://www.dioko.ai/blog/rust-in-the-vibecoding-era
3•dioko•27m ago•0 comments

Ask HN: A blog with heavy JavaScript to view – how?

1•purple-leafy•27m ago•0 comments

Ask HN: Why is packages.ubuntu.com not being indexed by Google?

https://www.google.com/search?q=%22libxmlb2%22+site%3Apackages.ubuntu.com
1•kristianp•27m ago•1 comments

Hispano Suiza Carmen

https://en.wikipedia.org/wiki/Hispano-Suiza_Carmen
1•petethomas•33m ago•0 comments

ASM SHADER TOY – It's shader toy but you code in asm

https://wegfawefgawefg.github.io/asm-shader-toy/
1•wegfawefgawefg•33m ago•1 comments

Guix Proposed Consensus Document "Standing up for human crafting"

https://codeberg.org/guix/guix-consensus-documents/src/commit/f84ec9031286518350abf19dd08a7227119...
1•clircle•35m ago•0 comments

Show HN: Approve an AI agent's wire with Face ID,then watch a forged one fail

https://www.emiliaprotocol.ai/try
2•EmiliaStar•35m ago•0 comments

Chaining LLM and web bugs to Admin

https://blog.quarkslab.com/from-prompt-to-pwned-chaining-llm-and-web-bugs-to-admin.html
1•ChicknNuggt•38m ago•0 comments

Built SwiPR – swipe-to-review GitHub PRs with AI context

https://github.com/nochinxx/SwiPR
1•nochinxx•48m ago•0 comments

The Nerdy Escorts Cashing in on Silicon Valley's AI Boom

https://www.forbes.com/sites/annatong/2026/06/07/the-nerdy-escorts-cashing-in-on-silicon-valleys-...
4•Anon84•48m ago•1 comments

Some yes no questions about Trump, tech perspective

https://gist.github.com/jasonm23/c236a60add30b0b3d2ec50f6c754a55a
2•jasonm23•49m ago•2 comments

MCP security tracks API's playbook – we know how that ends

https://www.reversinglabs.com/blog/mcp-security-tracks-api-playbook
1•mooreds•49m ago•0 comments

Quadratic funding democratizes allocation by rewarding projects w/ broad support

https://internetfreedom.torproject.org/funding-distribution/
1•Cider9986•51m ago•0 comments

Firefox for Android's Play Integrity check hits custom ROMs

https://www.omgubuntu.co.uk/2026/06/mozilla-firefox-android-google-play-integrity
1•akagusu•52m ago•0 comments

Copyright – Right Answer for Open Source Code, Wrong Answer for Open Source AI?

https://opensource.org/ai/webinars/copyright-right-answer-for-open-source-code-wrong-answer-for-o...
1•totetsu•56m ago•0 comments

Ignore what everyone else is doing

https://briandouglas.ie/developer_noise/
4•inventor7777•59m ago•0 comments

Livestreaming Trilemma: HLS, WebRTC, MOQ

https://swmansion.com/blog/livestreaming-trilemma-hls-webrtc-moq/
1•aloukissas•59m ago•0 comments

79% on LongMemEval: How We Beat Full-Context GPT-4 with a Local SQLite Database

https://medium.com/@vektormemory/79-on-longmemeval-how-we-beat-full-context-gpt-4-with-a-local-sq...
2•vektormemory•59m ago•0 comments

Dealership revoked offer to buy back customer's BMW, blaming wayward AI chatbot

https://www.cbc.ca/news/business/ai-chatbot-bmw-dealership-9.7230226
3•pseudolus•1h ago•0 comments

How We Automated Technical Implementation

https://antimetal.com/blog/how-we-automated-technical-implementation
1•herbertl•1h ago•0 comments

Ask HN: What computer are you using for AI coding tools?

1•willsmith72•1h ago•3 comments

State of Brain Emulation Report 2025

https://brainemulation.mxschons.com/
1•jonnonz•1h ago•0 comments