frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•7mo 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•7mo 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•7mo 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.

Sometimes, the quiet achievements are the most important ones

https://herbertlui.net/sometimes-the-quiet-achievements-are-the-most-important-ones/
1•herbertl•7m ago•0 comments

Ask HN: Change my mind) should AI coding conversations be append-only?

1•wsxiaoys•8m ago•0 comments

Oracle stock on pace for worst quarter since 2001, AI concerns

https://www.cnbc.com/2025/12/26/oracle-stock-on-pace-for-worst-quarter-since-2001-ai-concerns.html
2•speckx•9m ago•0 comments

The Secret Service Agent Haunted by His Failure to Save JFK

https://www.nytimes.com/interactive/2025/12/16/magazine/clint-hill-jfk-secret-service.html
1•bookofjoe•11m ago•1 comments

Cursed circuits #4: PLL frequency multiplier

https://lcamtuf.substack.com/p/cursed-circuits-4-pll-frequency-multiplier
2•ArmageddonIt•15m ago•0 comments

Show HN: A small embeddable and hackable Lisp-2 interpreter in C

https://github.com/mistivia/bamboo-lisp
2•mistivia•18m ago•0 comments

Elevator Wiki: wiki about elevators and their related topics

https://elevation.fandom.com/wiki/Elevator_Wiki
2•thunderbong•20m ago•0 comments

Star Guage

https://en.wikipedia.org/wiki/Star_Gauge
1•nz•20m ago•0 comments

Resolve merge conflicts with Claude Code

https://raine.dev/blog/resolve-conflicts-with-claude/
1•rane•20m ago•0 comments

Tixl: Open-source realtime motion graphics

https://github.com/tixl3d/tixl
1•nateb2022•20m ago•0 comments

Show HN: An authority gate for AI-generated customer communication

https://authority.bhaviavelayudhan.com
2•bhaviav100•23m ago•2 comments

MongoBleed

https://github.com/joe-desimone/mongobleed/blob/main/mongobleed.py
2•gpi•23m ago•0 comments

Gh-yule-log: GitHubCLI extension turns your terminal into an animated Yule log

https://github.com/leereilly/gh-yule-log
1•nateb2022•24m ago•0 comments

BitVault – A time-delayed multisig Wallet Solution delivering utmost security

https://www.bitvault.sv/
1•bitvaulty•28m ago•1 comments

The Louvre museum's collection database, updated daily

https://collections.louvre.fr/en/
2•Fiveplus•29m ago•0 comments

Show HN: StegCore – a decision boundary for AI systems (truth ≠ permission)

https://github.com/StegVerse-Labs/StegCore
1•the_rige1•30m ago•0 comments

Ask HN: How to gain a solid understanding of IMUs?

1•feefifoflux•35m ago•0 comments

The AI Reality Check: Deconstructing the 2025 Stack Overflow Developer Survey

https://nitinahirwal.in/posts/Stack-Overflow-Survey-2025
3•foobuzzHN•37m ago•1 comments

Vanslist – No middlemen. No fees. Just people

https://vanslist.com/
2•netgeniuskid•37m ago•0 comments

Do you believe in society's lies?

https://samkriss.substack.com/p/do-you-believe-in-societys-lies
2•paulpauper•37m ago•2 comments

Why Everyone Loves Japan

https://www.noahpinion.blog/p/why-everyone-loves-japan
2•paulpauper•38m ago•0 comments

The 2m Peak

https://writingcosmo.substack.com/p/the-2m-peak
1•tsterin•39m ago•0 comments

The Misfit Tree

https://collabfund.com/blog/the-misfit-tree/
1•herbertl•39m ago•0 comments

Leaker Who Apple Is Suing Says 'Screw It,' Here's the Foldable iPhone Early

https://gizmodo.com/leaker-who-apple-is-suing-says-screw-it-heres-the-foldable-iphone-early-20007...
2•achow•40m ago•0 comments

I Killed Color on My Phone. The Result Shocked Me

https://www.nytimes.com/2025/12/25/opinion/smartphone-color-grayscale-addiction.html
5•mikhael•40m ago•1 comments

Konami Code

https://craigatallahfrost.com/post/2025/12/23/konami-code
1•herbertl•43m ago•0 comments

Laid Off After 25 Years in Tech [video]

https://www.youtube.com/watch?v=VeMA9WGKxOg
3•akhilnchauhan•43m ago•0 comments

Affiliarena Kickstart Challenge – Mehr Verdienen ALS Online Marketer

https://simon-veith.net/jetzt-geht-es-los-mit-der-ki-revolution/affiliarena-kickstart-challenge-m...
1•hellocosmetics•43m ago•0 comments

Chess960v2 – the first championship has officially started

https://chess960v2.com/en
1•lavren1974•43m ago•0 comments

Metastable Failures and Interactions Between Systems

https://charap.co/on-metastable-failures-and-interactions-between-systems/
2•todsacerdoti•45m ago•0 comments