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.

US Army Women Are More Likely to Be Killed by Army Men Than by War

https://theintercept.com/2026/06/30/army-women-death-domestic-violence-sexual-assault/
1•rendx•1m ago•0 comments

NPR retracts story about Alito retirement

https://www.npr.org/sections/npr-public-editor/2026/06/30/g-s1-131107/npr-retracts-story-about-al...
1•petethomas•1m ago•0 comments

Daily step count of remote workers associated with lower stress and better work

https://medicalxpress.com/news/2026-06-daily-remote-workers-stress.html
1•OutOfHere•1m ago•0 comments

Show HN: Mimir – local-first encrypted memory for AI agents (single Rust binary)

https://github.com/Perseus-Computing-LLC/mimir
1•perseusai•3m ago•0 comments

Understanding lattice risks: Many differences between marketing and reality

https://blog.cr.yp.to/20260630-risk.html
1•ledoge•3m ago•0 comments

Meta's brain-scanning system reads sentences non-invasively, code open source

https://ai.meta.com/blog/brain2qwerty-brain-ai-human-communication/?_fb_noscript=1
2•alok-g•3m ago•0 comments

Superpowers 6

https://blog.fsck.com/2026/06/15/Superpowers-6/
2•seahorseemoji•3m ago•0 comments

Breaking the Bird Barrier: Scientist Decodes Zebra Finch Language

https://www.freepressjournal.in/education/breaking-the-bird-barrier-scientist-decodes-zebra-finch...
1•yyyk•5m ago•0 comments

Wearable foundation models: a brief history

https://www.empirical.health/blog/wearable-foundation-models/
2•brandonb•5m ago•0 comments

May in Servo: user scripts, mp4 compat, blackboxing in DevTools, and more

https://servo.org/blog/2026/06/30/may-in-servo/
1•birdculture•6m ago•0 comments

Go 1.26 Fixed the Things That Were Annoying

https://towardsdev.com/go-1-26-quietly-fixed-the-things-that-were-actually-annoying-5b4876071f04
1•cheikhdev•6m ago•0 comments

FluidVoice - Open source voice-to-text dictation app for macOS with local AI

https://github.com/altic-dev/FluidVoice
1•danboarder•7m ago•0 comments

MS admits 8GB RAM is fine for Win11, after years of pushing 16GB as the baseline

https://www.windowslatest.com/2026/06/25/microsoft-now-says-8gb-ram-is-fine-for-everyday-use-righ...
1•voxadam•10m ago•0 comments

Tell HN: Amazon Linux 2 is EOL today

https://aws.amazon.com/amazon-linux-2/faqs/
2•theschmed•13m ago•1 comments

Ray Tracer in SQL

https://github.com/ClickHouse/RayTracer
1•kbumsik•13m ago•0 comments

Baseline brain scan predicts adolescent depression and anxiety one year later

https://www.medrxiv.org/content/10.64898/2026.06.08.26355206v1
1•Anon84•16m ago•0 comments

SilentJSON – A zero-allocation JSON parser for Go (3.4 GB/s)

https://github.com/GenshIv/silentjson
1•ihariv•16m ago•0 comments

Startups as Reality Contact Machines

https://www.wespiser.com/posts/2026-06-30-reality-contact-machines.html
1•wespiser_2018•17m ago•1 comments

Clash Unfolds as Trump Admin Pushes Intel Agencies to Share Espionage Targets

https://www.nytimes.com/2026/06/29/us/trump-intelligence-agencies-spies-master-list.html
1•pulisse•19m ago•0 comments

The On-Line Encyclopedia of Integer Sequences

https://oeis.org/
1•sambapa•21m ago•0 comments

Automate public TLS certificate issuance with ACME support in AWS ACM

https://aws.amazon.com/blogs/aws/automate-public-tls-certificate-issuance-with-acme-support-in-aw...
1•Old_Recognition•22m ago•0 comments

Myst (Series)

https://en.wikipedia.org/wiki/Myst_(series)
2•doener•22m ago•1 comments

Godot will no longer accept AI-authored code contributions

https://www.pcgamer.com/gaming-industry/open-source-game-engine-godot-will-no-longer-accept-ai-au...
4•evo_9•23m ago•0 comments

Gemini Spark updates: macOS launch, connected apps and more

https://blog.google/innovation-and-ai/products/gemini-app/gemini-spark-updates-june-2026/
1•thanhhaimai•26m ago•0 comments

Bb: The IDE for loop driven development

https://getbb.app/
1•handfuloflight•26m ago•0 comments

The Singham Ground Game

https://www.btcpolicy.org/articles/foreign-influence-campaign-against-american-ai-part-ii-singham...
1•takoid•28m ago•0 comments

Claude Code Just Got 5x More Expensive

https://www.vincentschmalbach.com/claude-code-quietly-looks-5x-more-expensive/
3•vincent_s•28m ago•0 comments

From the Epstein Files to Inside the Manosphere

https://pocketproject.org/event/from-the-epstein-files-to-inside-the-manosphere-tending-to-fractu...
1•rendx•29m ago•0 comments

Local Reasoning for Global Properties

https://tratt.net/laurie/blog/2026/local_reasoning_for_global_properties.html
1•mpweiher•31m ago•0 comments

Underappreciated Builtin: Grand Unified Debugger

https://tusharhero.codeberg.page/underappreciated-builtin-gud.html
2•mpweiher•31m ago•0 comments