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.

WorldFrame – Local-first worldbuilding in Markdown

https://tryworldframe.com/
1•SturdyRobot•44s ago•0 comments

JSON vs. PROMPT distinction – Google's misleading claim

https://discuss.ai.google.dev/t/json-vs-prompt-distinction-google-s-misleading-claim/170679
1•Bitu79•46s ago•0 comments

Private Credit State Backstop How Private Equity Socializes Risk Through Insure

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=7152239
1•senshan•53s ago•1 comments

Claude no longer shows full thinking

https://old.reddit.com/r/ClaudeAI/comments/1v3u707/no_longer_shows_full_thinking/
1•rzk•1m ago•0 comments

Google illegally retains customer data,and I am taking legal action against them

https://discuss.ai.google.dev/t/google-illegally-retains-customer-data-and-i-am-taking-legal-acti...
1•Bitu79•3m ago•1 comments

Show HN: Open-sourcing my personal market research

https://research.oguzbilgic.com
1•obilgic•6m ago•0 comments

X Money

https://money.x.com
1•acmnrs•7m ago•0 comments

Attention Decode on AMD MI450 GPUs: A Gluon Kernel Optimization Guide

https://rocm.blogs.amd.com/software-tools-optimization/gluon-attention-decode-mi450/README.html
1•matt_d•7m ago•0 comments

Google search API replacement costs minimum $30k/year

https://old.reddit.com/r/googlecloud/comments/1qilhrg/is_googles_custom_search_api_being_disconti...
1•meltyness•7m ago•0 comments

From GPT2 to Kimi3

https://twitter.com/waterloo_intern/status/2081762065392541951
1•haritha1313•10m ago•0 comments

OpenOTP – Your email verification codes, autofilled on your Mac

https://github.com/jeninh/openotp
1•jeninh•14m ago•1 comments

Redact a PDF in the browser: the text is removed, not covered

https://still-wildflower-dc6f.akdmediax.workers.dev/vaultpdf/
1•akdvault•14m ago•0 comments

The State of Simulation for Physical AI: An Overview

https://huggingface.co/blog/nvidia/state-of-simulation-for-physical-ai
1•gmays•16m ago•0 comments

New York City Halts Construction at Another Office-to-Residential Conversion

https://www.wsj.com/real-estate/new-york-city-halts-construction-at-another-office-to-residential...
1•RestlessMind•17m ago•0 comments

Gemini was on the list of tools Google engineers are banned from using

https://timesofindia.indiatimes.com/technology/tech-news/google-founder-sergey-brin-found-out-usi...
2•Cider9986•19m ago•0 comments

Show HN: PromptTrace – Free hands-on labs to practice hacking LLMs

https://prompttrace.airedlab.com
1•k4r1it0•20m ago•0 comments

Lattice Semiconductor Completes Acquisition of BIOS Maker AMI

https://www.techpowerup.com/351114/lattice-semiconductor-completes-acquisition-of-ami
1•throw0101a•25m ago•0 comments

OpenAI, Google, and Anthropic Absent from Nvidia-Led Open Secure AI Alliance

https://www.tomshardware.com/tech-industry/artificial-intelligence/openai-google-and-anthropic-ab...
1•sbulaev•27m ago•0 comments

Don't ask an LLM for a confidence score

https://justinflick.com/2026/07/27/llm-confidence-scores.html
1•pamplemeese•27m ago•0 comments

Surveillance Is Trying to Be Sexy

https://www.hardresetmedia.com/p/surveillance-is-trying-to-be-sexy
3•theworkeragency•28m ago•0 comments

Admiral cloudberg: New article coming soon, and a teaser

https://admiralcloudberg.medium.com/progress-update-new-article-coming-soon-and-a-teaser-24f9093c...
1•mathgenius•32m ago•0 comments

Did an AI Really Hack Hugging Face? [video]

https://www.youtube.com/watch?v=q2KCrmQz9WE
1•marvinborner•33m ago•0 comments

Where USB Memory Sticks Are Born

https://www.bunniestudios.com/blog/2013/where-usb-memory-sticks-are-born/
1•jacquesm•34m ago•0 comments

The CEO of Shopify is contemptuous of democracy

https://www.jakelandau.ca/p/the-ceo-of-shopify-is-contemptuous
17•slowin•35m ago•5 comments

An Angry Spark, or a Triangle in Disguise?

https://medium.com/@billmarczak/an-angry-spark-or-a-triangle-in-disguise-ac32852a1be3
1•campuscodi•36m ago•0 comments

Pocketbyte: Modular ESP32-S3 Pocket Computer for Games, Music, and PDA Stuff

https://pocketbyte.co
1•omrawaley•38m ago•2 comments

Offgrid, solar powered fridge, with no battery bank

https://fridge0.branchable.com/
3•snthd•40m ago•0 comments

Git credential-cache and suspend: an unexpected timeout behavior

https://github.com/unlinkedbyte/unlinkedbyte.github.io/blob/main/_posts/2026-07-25-Git-credential...
1•unlinkedbyte•40m ago•0 comments

The five primitives I run a whole company on

https://methezone.github.io/solo-operator-playbook/five-primitives.html
1•dxs•41m ago•0 comments

Crystallization of Hard Spheres

https://www.youtube.com/watch?v=3QTbQdw0Vac
1•croemer•45m ago•0 comments