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.

The Modern Handbook on DMARC

https://www.suped.com/learn/dmarc
1•axrx•5m ago•0 comments

Show HN: MP3 to Transcript Online – Convert MP3 Audio to Text

https://mp3transcript.com/
1•daniel0306•7m ago•0 comments

Ukraine hits more warehouses of Russia's top online retailer Wildberries

https://www.reuters.com/world/europe/russias-largest-online-retailer-says-warehouses-attacked-aga...
1•nradov•8m ago•0 comments

Show HN: Sambaudit, a secrets scanner for SMB shares with a web UI

https://github.com/d-woosley/SambAudit
1•dwoosley•10m ago•0 comments

Restructuring GitHub's bug bounty program

https://github.blog/security/next-chapter-restructuring-githubs-bug-bounty-program/
2•soheilpro•13m ago•0 comments

Automatia Update: Friends in Cold Places

https://libriscv.no/blog/friends-in-cold-places/
1•fwsgonzo•16m ago•0 comments

Capitalism's status hierarchy is being upturned

https://www.economist.com/business/2026/07/22/capitalisms-status-hierarchy-is-being-upturned
2•petethomas•17m ago•0 comments

The Dark Side of Motorcycle Freedom: How Possibility Erodes Our Identity

https://fortnine.ca/en/the-dark-side-of-motorcycle-freedom
1•ianrahman•21m ago•0 comments

JavaScript Date Is Lying to You

https://blog.gaborkoos.com/posts/2026-07-21-Your-JS-Date-Is-Lying-to-You/
2•thunderbong•23m ago•0 comments

Leanstral [pdf]

https://github.com/mistralai/LeanstralSafeVerify/blob/main/LeanstralReport.pdf
1•gmays•27m ago•0 comments

Diffusion ReRoll

https://seonsoo-p1.github.io/DiffusionReRoll/
1•E-Reverance•29m ago•0 comments

Chinese AI's role in stopping rogue OpenAI agent shows cost of US guardrails

https://www.reuters.com/legal/litigation/chinese-ais-role-stopping-rogue-openai-agent-shows-cost-...
3•LittleCat38•34m ago•0 comments

Ask HN: What new technologies are you excited about besides AI?

2•yellow_lead•37m ago•2 comments

Agatha Christie's Disappearance: Amnesia, Suicide, or Despair?

https://www.historicmysteries.com/unexplained-mysteries/agatha-christie-disappearance/23136/
2•thunderbong•40m ago•0 comments

Gravity-1 sea launch off Shanghai puts 9 satellites into orbit

https://spacenews.com/gravity-1-sea-launch-off-shanghai-puts-9-satellites-into-orbit/
2•bookmtn•41m ago•0 comments

Daily Nanogram Puzzle

https://pixelogic.app/daily
2•vismit2000•42m ago•0 comments

Honey Bee Colony Monitoring via Audio IoT Sensors, Tensorgrams and RNNs

https://arxiv.org/abs/2607.20386
2•StatsAreFun•43m ago•0 comments

Goodbye Data, Hello AI: My Biggest Takeaway from Snowflake Summit 2026

https://apacheseatunnel.medium.com/goodbye-data-hello-ai-my-biggest-takeaway-from-snowflake-summi...
3•DSOfficial•44m ago•0 comments

Tell HN: Cursor Auto is no longer "Auto"! Let's welcome Auto Cost

https://forum.cursor.com/t/introducing-cursor-router/166386
3•subhobroto•45m ago•1 comments

Map of Every Clean Water Act (Npdes) Discharge Violation in the US

https://www.speakforthetrees.com/facilities
4•offtrailstudio•45m ago•1 comments

Running Apache DolphinScheduler with Spark on Kubernetes: A Deployment Guide

https://medium.com/@ApacheDolphinScheduler/running-apache-dolphinscheduler-with-spark-on-kubernet...
2•DSOfficial•47m ago•1 comments

Show HN: AgentNest, self-hosted sandboxes for AI agents

https://github.com/mihirahuja1/agentnestOSS
4•mihir_ahuja•47m ago•2 comments

A Stargate for Data

https://twitter.com/willdepue/status/2074178395462848800
3•gmays•49m ago•0 comments

Inside An Exposed WebDAV Malware Delivery Lab

https://www.rapid7.com/blog/post/tr-exposed-webdav-malware-delivery-lab-analysis/
2•onthedole•51m ago•0 comments

Why Agents Suck at Authentication: `auth-services-skills` vs. Reality

https://skilldb.dev/blog/why-agents-suck-at-authentication-auth-services-skills-vs-reality
2•dev_chad•59m ago•1 comments

Dune II, RTS on C64 [video]

https://www.youtube.com/watch?v=smiQnlbqpKw
3•schyzomaniac•1h ago•3 comments

GitHub issues $100k bounty for critical RCE vulnerability

https://runtimewire.com/article/github-issues-100-000-bounty-for-critical-rce-vulnerability-discl...
3•update•1h ago•1 comments

Run large language models at home, BitTorrent‑style

https://petals.dev/
25•snorbleck•1h ago•11 comments

Why Stanford Students Walked Out on Sundar Pichai's Commencement Speech

https://www.wired.com/story/big-interview-stanford-students-booing-sundar-pichai/
4•1vuio0pswjnm7•1h ago•1 comments

Ask HN: Will AI assistants become photorealistic video?

3•general_reveal•1h ago•1 comments