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•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: Social Network for Corporate Cringe

https://CringeOut.com
1•CringeOut•1m ago•0 comments

Plimpton 322 – Babylonian Clay table of triangles 1k years before Pythagoras

https://en.wikipedia.org/wiki/Plimpton_322
1•lifeisstillgood•1m ago•0 comments

Test

1•zhoykn•2m ago•0 comments

Show HN: Uvx privacy-steward for PII removal in texts

https://github.com/AI-Colleagues/privacy-steward
1•NeuralNotwork•2m ago•0 comments

Show HN: Imagev2.me – Tired of juggling AI image subs, so I built one studio

https://imagev2.me/
1•billy42•4m ago•0 comments

SEO-Friendly Public Pages for Confluence

https://marketplace.atlassian.com/apps/356517983/public-pages-for-confluence
1•MaxBabenko•5m ago•0 comments

AI Agent Drained for $200K with This One Tweet Hack

https://www.ccn.com/news/crypto/ai-agent-drained-for-200k-with-this-one-tweet-hack-heres-how/
1•aledevv•9m ago•0 comments

SpaceX IPO gives Musk power and curbs shareholder rights

https://www.reuters.com/sustainability/boards-policy-regulation/spacex-ipo-gives-musk-sweeping-po...
1•denis1•10m ago•0 comments

USB-Vault v1.0.0 – Deterministic Password Generator

https://github.com/emilianosolazzi/USB-Vault
1•emilianosolazzi•11m ago•0 comments

DeepSeek-v4-Pro and Hermes: Unauthorized Modification of Security Controls

https://www.eddieoz.com/deepseek-v4-pro-hermes-unauthorized-modification-of-security-controls/
1•eddieoz•13m ago•0 comments

Rapid: Property-Based Testing for Go

https://github.com/flyingmutant/rapid
1•ThierryBuilds•16m ago•0 comments

Microsoft in Talks to Ax Energy Pledge Amid Data Center Boom

https://www.bloomberg.com/news/articles/2026-05-06/microsoft-clean-power-target-on-chopping-block...
1•zekrioca•19m ago•0 comments

15 things I learnt launching AI projects in Government (4-part blog post)

https://puntofisso.net/blog/posts/things-i-learned-ai-summary/
1•puntofisso•19m ago•1 comments

Show HN: Keysee – deterministic identicons for public keys

https://keysee.io/ui
1•scottmotte•20m ago•1 comments

Ask HN: Is gretap the right tool for this kind of LTE setup?

2•neroman•21m ago•1 comments

1Password supports Credential Exchange (CXF) on mobile

https://1password.com/blog/import-autofill-organize-whats-new-in-1password-this-quarter
1•vdelitz•23m ago•0 comments

Study: People are stressed out by most news that isn't local news

https://www.niemanlab.org/2026/05/people-are-stressed-out-by-most-news-that-isnt-local-news-accor...
2•giuliomagnifico•32m ago•0 comments

Studies on animal minds suggests consicousness is not computation [pdf]

https://petergodfreysmith.com/wp-content/uploads/2026/05/IAI-Bio-Naturalism-preprint-version-PGS-...
2•the-mitr•32m ago•0 comments

Modern IRC Client with E2E Encryption

https://github.com/gh0st68/CryptIRC
2•hallucinate•34m ago•1 comments

Show HN: Ikka – Zimbabwean Based News Aggregator

https://www.ikka.cloud/
1•mugamuga•35m ago•0 comments

Ask HN: Do you understand all the code written by AI in your company?

1•roschdal•40m ago•0 comments

French professor accused of 'gigantic hoax' after inventing Nobel-style prize

https://www.theguardian.com/world/2026/may/07/french-professor-florent-montaclair-accused-award-p...
3•rguiscard•41m ago•0 comments

Unpacking Russian-Iranian Private-Sector Cyber Connections

https://margin.re/2026/05/unpacking-russian-iranian-private-sector-cyber-connections/
1•campuscodi•43m ago•0 comments

The Comparator in Clinical AI

https://sparsethought.com/2026/05/03/science-paper/
1•galsapir•43m ago•1 comments

EVE Online studio CCP Games turns independent and rebrands as Fenris Creations

https://www.gamedeveloper.com/business/eve-online-studio-ccp-games-turns-independent-and-rebrands...
2•Michelangelo11•44m ago•1 comments

As a community we need to understand that MCP is not needed

2•Lethalman•44m ago•2 comments

Test

1•zhoykn•45m ago•1 comments

Show HN: Omoggle Rating Score Calculator

https://omoggleai.org/
2•mixfox•46m ago•0 comments

Why arguing with a confused LLM makes things worse

https://atzeus.substack.com/p/why-arguing-with-a-confused-llm-makes
1•atzeus•48m ago•0 comments

We fund the system, not the founders

https://adamglen.substack.com/p/we-fund-the-system-not-the-founders
1•sebzuddas•52m ago•0 comments