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.

Physics AI: The illusion of ground truth

https://rpep.dev/posts/physics-ai-the-illusion-of-ground-truth/
1•rpep•1m ago•0 comments

Introduction to CUDA Beyond the Syntax

https://medium.com/@aadyachinubhai/introduction-to-cuda-beyond-the-syntax-c77866c3752d
1•aadyachinubhai•1m ago•0 comments

The Gödel Editorial Project: A Synopsis (2005, Pdf)

https://math.stanford.edu/~feferman/papers/Goedel-Project-Synopsis.pdf
1•throwaway81523•1m ago•0 comments

A different interpretation of the same old mathematics

https://medium.com/@aadyachinubhai/a-different-interpretation-of-the-same-old-mathematics-545f795...
1•aadyachinubhai•5m ago•0 comments

The Risks Are the Roadmap

https://varoa.net/2026/11/17/the-risks-are-the-roadmap.html
1•srvaroa•6m ago•0 comments

Codeberg is down due to a domain issue

https://social.anoxinon.de/@Codeberg/117636454915265360
3•latexr•7m ago•0 comments

Godot Foundation Welcomes Manus as Platinum Sponsor

https://godotengine.org/article/partners_manus_sponsorship_2026_announcement/
1•rdmuser•7m ago•2 comments

Forensic Evidence that BBC were unlawfully deploying Optimizely across the EU

https://websentinel.eu/research/
1•AlexanderHanff•7m ago•1 comments

Show HN: Math 2.0

https://math2.tamnd.com/areas/
1•tamnd•9m ago•0 comments

Show HN:openRocode–let multimodal models drive robots the way they use computers

https://github.com/wrencanfly/openRocode/tree/main
1•muyin1215•9m ago•0 comments

Whisper Large-v3 Turbo on Intel Xeon 6 with HPE ProLiant DL380 Gen12 [pdf]

https://cdn.sanity.io/files/ls8k7ser/production/a569f09b5c0b86cd7624239d5a146b3401e37e79.pdf?dl=M...
2•decide1000•10m ago•0 comments

Palmer Luckey is planning to build a community at sea

https://twitter.com/palmerluckey/status/2122861334371180795
1•nstj•11m ago•1 comments

A 1:1 scale replica of Earth in Minecraft

https://worldcraft.gg
2•metafunctor•16m ago•0 comments

A Campfire port in Agentica, measured against Go

https://www.agentica-lang.com/blog/campfire-faster-than-go/
1•sonic182•16m ago•0 comments

Write text parsers with yacc and lex

https://developer.ibm.com/tutorials/au-lexyacc/
1•ankitg12•17m ago•0 comments

Talos Linux

https://www.siderolabs.com/talos-linux
2•SweetSoftPillow•18m ago•0 comments

Voyager 1 Live Telemetry Feed Approaching One Light-Day

https://whereisvoyager1.com/
1•NaOH•18m ago•0 comments

Show HN: Production Grammar-Guided Decoding in vLLM with Xgrammar Benchmarks

https://github.com/grfdsasdvef/vllm-constrained-decoding-cookbook
1•snowdensay•19m ago•0 comments

Show HN: Fufu – an opinionated Git client inspired by Jujutsu

https://tyler-johnson.github.io/fufu/
1•mrgalaxy•24m ago•0 comments

Microsoft 365 outage forces Japanese workers back to fax machines

https://www.techradar.com/pro/microsoft-365-outage-saw-japanese-workers-fire-up-their-fax-machines
2•nephihaha•25m ago•0 comments

U.S. Energy Carbon Dioxide Emissions on Pace to Decline 2% in 2026

https://energyinnovation.org/report/u-s-energy-carbon-dioxide-emissions-on-pace-to-decline-2-perc...
2•giuliomagnifico•29m ago•0 comments

Alaska Senate race called: Democrats win

https://www.nytimes.com/2026/11/17/us/politics/alaska-senate-sullivan-peltola.html
4•illidan1000•31m ago•0 comments

Human-written Launch HN posts get more upvotes than AI-generated ones

https://www.lettercamp.com/blog/ai-writing-in-launch-hn-posts
1•justswim•31m ago•0 comments

From 181 bytes: nixpkgs' full-source bootstrap

https://fzakaria.github.io/from-181-bytes/
1•birdculture•32m ago•0 comments

Automated LLM Fine-Tuning: GPU Selection, Dataset Analysis and Feedback

https://sigvard.ai
1•andrey-serdyuk•32m ago•0 comments

Show HN: csshm – cluster SSH written in Swift for macOS

https://github.com/anarchy89/csshm
1•anarchy89•33m ago•0 comments

My Dog Ate a Kitchen Sponge – What to Do Now (Call Your Vet) – PetToxCheck

https://pettoxcheck.com/dogs/my-dog-ate-kitchen-sponge/
1•colin_wickens•35m ago•0 comments

What if we tried to eat the sun? [video]

https://www.youtube.com/watch?v=Aony69nO5kI
1•skibz•40m ago•0 comments

Torrent Infra Needs to Modernize Immediately for Open Models to Survive

https://pirateface.co/articles/pirate-face-cli
15•alohahaho•42m ago•0 comments

Researchers hijack Hugging Face account for popular Kokoro AI model

https://www.bleepingcomputer.com/news/security/researchers-hijack-hugging-face-account-for-popula...
1•shoshkin•43m ago•0 comments