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.

Get(key) in libmdbx by up to x1000 using a lock‑free cache on top of a B‑tree

https://github.com/orgs/Mithril-mine/discussions/314
1•erthink•1m ago•0 comments

Claude Session URL appended to commit messages and PR descriptions by default

https://github.com/anthropics/claude-code/issues/66504
2•sparsesignal•5m ago•0 comments

Ask HN: Do you run A/B Tests?

2•hackeryogi•16m ago•0 comments

Nobody Told Me People Still Code New Games for a 1982 Computer

https://comuniq.xyz/Technology/post?t=1634
2•01-_-•17m ago•0 comments

Sports Engines

https://random.ma.ttias.be/boxermotor
2•Mojah•18m ago•0 comments

AWS mumbles about its cost-busting networking tech when it should be shouting

https://www.theregister.com/networks/2026/08/29/aws-mumbles-about-its-cost-busting-networking-tec...
2•sandbach•19m ago•0 comments

Claude Team Plan for Scientists

https://claude.com/programs/team-plan-for-scientists
2•Anon84•22m ago•0 comments

Vaultwarden Sequence Diagrams

https://app.ilograph.com/demo.ilograph.Vaultwarden/Log%2520In
2•billyp-rva•25m ago•0 comments

No AI Fridays

https://noaifridays.com/
3•xendo•25m ago•1 comments

The MAI Image and Reve 2.1 ranks higher than GPT Image 2 now

https://artificialanalysis.ai/image/leaderboard/editing
2•creatune•29m ago•0 comments

Senior Software Engineer

3•sshahu•29m ago•0 comments

Tinkering is Up: browser-based local reader for Hacker feeds

https://future-secured.com/41133
2•adrianwaj•32m ago•0 comments

FOSDEM 2027: 30 & 31 January 2027 Brussels, Belgium

https://fosdem.org/2027/
2•edward•36m ago•0 comments

Eed

4•clawd2bot•40m ago•0 comments

Android /iOS mobile application Vulnerability Scanning

2•klars-ai•41m ago•0 comments

Supersaturated Sodium Acetate [video]

https://www.youtube.com/watch?v=rSZsGOzVByg
2•skibz•42m ago•0 comments

Leak of Internal Valve Data

https://www.pcgamer.com/games/fps/a-massive-cache-of-valve-data-has-reportedly-leaked-online-appe...
4•thispbowden•42m ago•0 comments

Tinyhash: SHA-512/256 in the browser, zero servers, zero deps

https://raw.githack.com/EltonCherrington/tinyhash/main/tinyhash.html
2•memctlagent2026•43m ago•0 comments

The shrinking landscape of linguistic diversity in the age of LLMs

https://www.nature.com/articles/s41562-026-02550-0
2•Anon84•43m ago•0 comments

AgentObs – a hook that blocks Claude Code before you hit your limit

2•klars-ai•43m ago•0 comments

Nothing Left to Say

https://jdranpariya.com/writings/nothing-left-to-say/
2•JDRanpariya•48m ago•0 comments

Hy4 Preview

https://simonwillison.net/2026/Aug/29/hy4/
3•kyisaiah47•50m ago•0 comments

monty-go: Pure-Go wrapper for Pydantic's Monty Python Interpreter

https://github.com/fugue-labs/monty-go
7•networked•54m ago•0 comments

Idlen: Ads in the IDE, in AI chats, and a self-serve ads manager

https://www.idlen.io/
2•paulidenfounder•54m ago•0 comments

Show HN: C# Game Engine with its own scripting language and IDE

https://github.com/ArcadeMakerSources/ArcadeMaker/tree/master
5•am-gm•54m ago•0 comments

A walkable ASCII cyberpunk city in one self-contained HTML file

https://github.com/MiguelCarino/CyberCity
4•ncts•54m ago•1 comments

He Was a Top Lawn Care Influencer on YouTube. Then Everything Went Haywire

https://www.nytimes.com/2026/08/30/magazine/greg-chism-youtube-bad-baby.html
3•snide•55m ago•0 comments

LLM usage in Debian neither endorsed nor prohibited

https://www.debian.org/vote/2026/vote_002#texte
3•birdculture•1h ago•0 comments

NASA's Roman Space Telescope: 'Go' for Launch

https://science.nasa.gov/blogs/roman/2026/08/30/nasas-roman-space-telescope-go-for-launch-2/
2•geox•1h ago•0 comments

Angels and Demons (Aquinas 101) [video]

https://www.youtube.com/watch?v=J_xIChMDYGI
2•3willows•1h ago•0 comments