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.

Could a modern chess engine on a Pentium have defeated Kasparov in 1996?

https://nicholas.carlini.com/writing/2026/algorithmic-improvements-chess.html
1•markusw•1m ago•0 comments

Google patched a zero day I found and has not paid me

https://github.com/jegly/jegly
1•jjjegly•5m ago•0 comments

Anthropic IPO

https://ipo.anthropic.com/us/
1•taspeotis•6m ago•0 comments

SUSE to cut one in ten employees because of AI

https://www.theregister.com/software/2026/11/02/suse-to-cut-one-in-ten-employees-because-of-ai/53...
1•pjmlp•8m ago•0 comments

Open models can do 90 percent of agentic work at a twentieth of the cost

https://www.theregister.com/ai-and-ml/2026/11/03/open-models-can-do-90-percent-of-agentic-work-at...
2•Betelbuddy•10m ago•0 comments

Who lost my lap infant?

https://jtibs.substack.com/p/who-lost-my-lap-infant
2•jllyhill•15m ago•1 comments

The software industry: annealing, but wrong

https://apenwarr.ca/log/20260531-the-software-industry-annealing-but-wrong
2•thecloudlet•17m ago•0 comments

Future Maintenance of Mbed TLS

https://lists.trustedfirmware.org/archives/list/mbed-tls@lists.trustedfirmware.org/thread/YPIGCB7...
1•jonesjohnson•18m ago•0 comments

uBlock Origin filter to block autoplay videos in TechCrunch

https://cornfieldlabs.github.io/posts/ublock-stop-techcrunch-autoplay-video/post.html
16•cornfieldlabs•20m ago•2 comments

GTA 6

2•jiogetty•22m ago•1 comments

NIST: Small Business Cybersecurity Corner

https://www.nist.gov/itl/smallbusinesscyber
1•rramadass•26m ago•0 comments

Show HN: Tempo Match – find a Spotify song at any BPM

https://tempo-match.hadalin.me/
1•supr_strudl•26m ago•0 comments

The Internals of a Badbox Operation

https://synthient.com/blog/the-internals-of-a-badbox-operation
1•ersinesen•31m ago•0 comments

Autonomous Agents Need Mandatory Access Control

https://www.legiscope.com/blog/autonomous-agents-mandatory-access-control.html
2•Thiebaut•33m ago•1 comments

Drama Studio: local realistic text-to-speech synthesis engine for Apple Silicon

https://github.com/maralski/drama-studio
1•maralski•33m ago•0 comments

Remote Jobs API – one JSON API for 70 remote job boards (1.4M+ live listings)

https://remote-jobs-api.tten.no
1•earnnova-dev•34m ago•0 comments

The quest for immortality has become serious business

https://economist.com/business/2026/11/02/the-quest-for-immortality-has-become-serious-business
1•andsoitis•34m ago•0 comments

Show HN: WorkProof – Discover Fresh Global Work Opportunities

https://www.worknproof.online/
1•Vakra•35m ago•0 comments

Ask HN: How are you protecting your apps and infra after recent vulnerabilities?

1•__warlord__•35m ago•1 comments

Railway infra agent goes rogue, attempts to breach competitor

https://twitter.com/jakerunzer/status/2117474337682780643
1•kristianc•38m ago•0 comments

Ask HN: What are you doing to protect the privacy of your notes?

2•ugur2nd•42m ago•5 comments

Show HN: OpenYog, SQLyog Community Ported to Qt 6 for Linux and Windows

https://github.com/AbdulOhab/openyog
2•ab_wahab01•45m ago•0 comments

Nvidia orders data centre clients to reduce China exposure

https://www.ft.com/content/1902df70-1380-4588-bad5-171352b575f2
2•JumpCrisscross•45m ago•1 comments

Lite Pinescript

https://ribqa.com/chart
1•armatadh•47m ago•0 comments

Show HN: Inline Logs, console.log values next to your code in VS Code

https://github.com/lagudafuadtosin/inline-logs
2•lagudafuad•52m ago•0 comments

Nvidia – open-source auto-ontology

https://github.com/NVIDIA/auto-ontology
8•campervans•52m ago•1 comments

GitHub Agentic Workflows are generally available

https://github.blog/changelog/2026-10-28-github-agentic-workflows-generally-available/
4•theletterf•56m ago•0 comments

Railway employee tries to hack a competitors infrastructure

https://twitter.com/joshmanders/status/2117458724407415295
2•ashishmax31•57m ago•0 comments

Show HN: Building a Self-Evolving WAF Engine via Inductive Logic Programming

https://prologwaf.site/
2•lokinpendawa•57m ago•0 comments

Walking Through the Knowldge Era

https://sert121.bearblog.dev/the-knowledge-era/
2•sert_121•58m ago•0 comments