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.

Chinese Name Generato

https://chinesenamehub.com/
1•zidana•28s ago•1 comments

A Reddit Post Led to a Breakthrough in the Brown Shooting Investigation

https://www.nytimes.com/2025/12/19/us/brown-mit-shooting-investigation-reddit.html
1•JumpCrisscross•1m ago•0 comments

Gemini 3 Flash now Built-in to AlloyDB

https://medium.com/google-cloud/authors-darshana-sivakumar-pushkar-khadilkar-1a53380fd1bb
2•mariuz•7m ago•0 comments

Show HN: QuantumVICK – 106-agent AI swarm for VSCode (free trial)

https://quantumvick.com
1•epochcore•12m ago•0 comments

Show HN: AI Vocabulary Quiz Maker

https://minform.io/tools/vocabulary-quiz-maker
1•eashish93•13m ago•0 comments

ChatGPT Apps

https://techcrunch.com/2025/12/18/chatgpt-launches-an-app-store-lets-developers-know-its-open-for...
1•grandimam•15m ago•0 comments

The Year in Computer Science – 2025 in review

https://www.quantamagazine.org/the-year-in-computer-science-20251216/
1•vismit2000•16m ago•0 comments

Trump suspends US green card lottery in wake of Brown and MIT shootings

https://www.theguardian.com/us-news/2025/dec/19/trump-suspends-us-green-card-lottery-dv1-visa-pro...
4•Bootvis•16m ago•0 comments

I wanted SSH access to my server from my iPhone, so I built this

https://rootedssh.com/
1•Sayuj01•17m ago•0 comments

The Year in Mathematics – 2025 in review

https://www.quantamagazine.org/the-year-in-mathematics-20251218/
1•vismit2000•17m ago•0 comments

South Korea to mandate facial recognition for opening new mobile numbers

https://english.kyodonews.net/articles/-/67151
2•anigbrowl•17m ago•0 comments

The Biggest Breakthroughs in Mathematics: 2025 [video]

https://www.youtube.com/watch?v=hRpcWpAeWng
1•vismit2000•17m ago•0 comments

Scoop: TikTok signs deal for U.S. unit after yearslong saga

https://www.axios.com/2025/12/18/tiktok-sale
1•_____k•17m ago•0 comments

Predictions for 2026

https://www.platformer.news/2026-tech-predictions-ai-bubble-openai-meta-google/
2•xngbuilds•18m ago•0 comments

The Year in Physics

https://www.quantamagazine.org/the-year-in-physics-20251217/
1•pykello•19m ago•0 comments

AI for Website Design

https://boltai.dev/
1•atulseth22•31m ago•0 comments

Apple is forcing iPhones to update to iOS 26 to patch security holes

https://sixcolors.com/post/2025/12/apple-is-forcing-iphones-to-update-to-ios-26-to-patch-security...
7•gloxkiqcza•33m ago•0 comments

Claude Code Session Viewer

https://github.com/d-kimuson/claude-code-viewer
1•RebootStr•33m ago•0 comments

Have you ever been accepted after being rejected at first?

https://www.quora.com/Has-anyone-rejected-you-then-accepted-you
1•marysminefnuf•33m ago•1 comments

Show HN: Advent of Refactoring"

https://www.youtube.com/playlist?list=PLXkLI8HXcMo2r9Q5t27aIh-S4guP_I7z1
1•deckiedan•34m ago•0 comments

33 Thomas Street

https://en.wikipedia.org/wiki/33_Thomas_Street
3•petethomas•38m ago•0 comments

Show HN: GuageAI – Free Beta for GitHub Copilot ROI Analytics

https://guageai.com
1•laiqahmad11•40m ago•0 comments

Vanguard Anti-Cheat Security Update: Closing the Pre-Boot Gap

https://www.riotgames.com/en/news/vanguard-security-update-motherboard
3•haunter•42m ago•0 comments

Why Community Translation Falls Short for Your Plugins and Themes

https://wpml.org/announcements/2025/12/why-community-translation-falls-short-for-your-plugins-and...
1•taubek•44m ago•0 comments

A Survey of Dynamic Array Structures

https://azmr.uk/dyn/
2•birdculture•47m ago•0 comments

Ditch textbooks and learn how to use a wrench to AI-proof your job?

https://www.economist.com/international/2025/12/18/ditch-textbooks-and-learn-how-to-use-a-wrench-...
2•helsinkiandrew•48m ago•1 comments

Ask HN: How are you choosing between Sora 2, Veo 2, and Kling?

1•thenextechtrade•49m ago•0 comments

Big bets and broken unicorns: Tiger Global's rise and reckoning

https://restofworld.org/2025/tiger-global-unicorn-investment-crash/
1•Brajeshwar•50m ago•0 comments

Show HN: Kiteform – The Simplest Form Builder

https://kiteform.com
1•18chetanpatel•51m ago•0 comments

Rebuilding state management: How we made our VS Code extension 2× faster

https://www.augmentcode.com/blog/rebuilding-state-management
1•knes•53m ago•0 comments