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.

Show HN: We turned our marketing site into a flight simulator

https://okae.ai/landing
2•okae-team•1m ago•0 comments

The first beta of Android 18

https://developer.android.com/blog/posts/the-first-beta-of-android-18
1•exploraz•1m ago•0 comments

An agent governance framework for enterprises

https://luciobaiocchi.com/blog/agent-governance-security-framework
2•luciobaiocchi•3m ago•0 comments

Forge Engine – Visual 2D Game Maker Editor

https://forgeengine.space/
1•Benjaminqwer•5m ago•1 comments

Out of the Muck

https://bengodfrey.dev/blog/out-of-the-muck/
1•sudo-bendg•6m ago•0 comments

Adversarial Hiring

https://drive.google.com/file/d/1_u30ecKI2NnLjyE7fbSLbcpKF-njASfb/view
1•rustoo•6m ago•0 comments

Zig: Package conflict management and build system docs

https://ziglang.org/devlog/2026/#2026-12-04
1•joshcsimmons•8m ago•0 comments

V Programming Language 0.5.3

https://github.com/vlang/v/releases/tag/0.5.3
1•hggh•9m ago•0 comments

Post-quantum RSA (terabyte key) (2017)

https://eprint.iacr.org/2017/351
1•networked•9m ago•0 comments

The Hidden Cost of Getting Everything Right

https://www.derekthompson.org/p/what-happens-when-we-build-a-machine
1•thunderbong•10m ago•0 comments

Ente was built by ex Google engineer in response to project maven

https://twitter.com/Felix_Josemon/status/2129063217456628176
2•tachyons•12m ago•0 comments

Keep AI under human control or risk extinction, Anthropic investor warns

https://www.bbc.com/news/articles/c6wy48yv4xw7o
2•jo_in_europe•13m ago•0 comments

Quantum, AI, and Your Keys: You Don't Have to Do Anything

https://gno.land/r/nym-nobody777/blog:p/quantum-ai-keys
1•jaekwon•15m ago•0 comments

Why Nvidia just teamed up with a chip rival [video]

https://www.youtube.com/watch?v=ZQBsvs9_mds
1•saikatsg•15m ago•0 comments

Pushin becomes first Git forge to support post-quantum Git over SSH

https://pushin.eu/blog/2026-12-04-post-quantum-ssh
1•pjullrich•17m ago•0 comments

Against AI-Shaming

https://nitter.click/i/article/2117700723345338412?__aragorn=O9bevrmaXdo_p2biTQFm26p0tWcQCLyvfgX8...
2•Tomte•24m ago•0 comments

State of SSL and TLS Encryption in Late 2026

https://zerossl.com/p/ssl-in-late-2026
1•taubek•28m ago•0 comments

EKA-1 Technical Report [pdf]

https://soket.ai/reports/eka-1-technical-report.pdf
1•porridgeraisin•34m ago•0 comments

What kind of facilities does the Internet Archive have and how is it operated?

https://gigazine.net/gsc_news/en/20260119-web-inside-internet-archives/
3•FrankyHollywood•36m ago•1 comments

I closed one third of all Plasma bugs

https://thelibre.news/how-i-closed-one-third-of-all-plasma-bugs/
2•Gander5739•43m ago•0 comments

Anssi: Recent AI Advances and Their Impact on Cryptography [in French]

https://cyber.gouv.fr/actualites/avis-de-lanssi-sur-avancees-permises-par-lia-et-leur-impact-sur-...
1•otrack•46m ago•0 comments

New Legal Authority for Authorities to Intercept 2FA Messages to Access Accounts

https://decoded.legal/blog/2026/12/a-new-lawful-authority-for-the-interception-of-two-factor-auth...
2•DeepLogin•52m ago•1 comments

Ask HN: You're the most tech savvy US President ever. What's your AI policy?

1•noduerme•52m ago•1 comments

Microbiome home tests are taking off. Can they be trusted?

https://www.nature.com/articles/d41586-026-03710-y
1•mfld•56m ago•0 comments

Nvidia finds 'material weaknesses' in controls over financial reporting

https://www.ft.com/content/5b6c122b-1b13-4d06-8f4e-b43705b68803
5•uxhacker•1h ago•1 comments

Pipedream confirms compromised API keys and is temporarily unavailable

https://pipedream.com/
5•aghuang•1h ago•0 comments

Rust, Post-Quantum Cryptography, and You

https://rustfoundation.org/media/rust-post-quantum-cryptography-and-you/
4•espeed•1h ago•0 comments

5-Yr-Old Can't Sleep as Microsoft's AI Data Center Runs 24/7: Microsoft Lawsuit

https://www.ibtimes.sg/5-year-old-cant-sleep-microsofts-ai-data-center-runs-24-7-families-sue-ove...
5•Skywalker19•1h ago•0 comments

US banks are sharing Social Security numbers with ad giants Reddit and X

https://techcrunch.com/2026/12/03/us-banks-are-sharing-social-security-numbers-with-advertising-g...
3•nreece•1h ago•0 comments

Talking a bit more about translator credits in video games

https://www.whateverthewindbrings.com/talking-a-bit-more-about-translator-credits-in-video-games/
2•charlie42•1h ago•0 comments