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

RAG Gone Wrong: The 7 Most Common Mistakes (and How to Avoid Them)

https://www.kapa.ai/blog/rag-gone-wrong-the-7-most-common-mistakes-and-how-to-avoid-them
1•taubek•35s ago•0 comments

Building Modern Databases with the FDAP Stack

https://gotopia.tech/articles/412/building-modern-databases-with-the-fdap-stack
1•mpweiher•2m ago•0 comments

Logical Intelligence (Yann LeCun linked startup, piloting an Energy Based Model)

https://logicalintelligence.com/
1•helloplanets•2m ago•0 comments

InfronAI

https://infron.ai/
1•Evan233•3m ago•0 comments

Mark Papermaster, AMD CTO / Ian Interviews #47 [video]

https://www.youtube.com/watch?v=yUBzu7oTTDo
1•mariuz•6m ago•0 comments

Scottrade – Fortune Favors the Brave

https://scottrade.net/
1•reieicucv•8m ago•0 comments

Show HN: Trending-in-Artificial-Intelligence

https://github.com/legendaryabhi/Trending-in-Artificial-Intelligence
1•abhinav77777•8m ago•0 comments

Supporting the Foundations: Announcing the 2025 Quansight OSS Fund Recipients

https://labs.quansight.org/blog/oss-fund-2025
1•lumpa•10m ago•0 comments

The Connection Machine CM-1 "Feynman" T-shirt

https://tamikothiel.com/cm/cm-tshirt.html
1•tosh•10m ago•0 comments

AI-generated news should carry 'nutrition' labels, thinktank says

https://www.theguardian.com/technology/2026/jan/30/ai-generated-news-should-carry-nutrition-label...
1•chrisjj•12m ago•0 comments

I built an MCP server to explore Epstein's emails. Here's what I learned

https://github.com/Gioppix/epstein-email-explorer-mcp/blob/main/REVIEW.md
1•Gioppix•16m ago•0 comments

Show HN: Django-Xbench – See DB vs. App Time in Django via Server-Timing Headers

https://github.com/yeongbin05/django-xbench
1•yeongbin05•18m ago•1 comments

$1B Binance SAFU fund: If stablecoins mean safety, why do Bitcoin returns?

https://altcoindesk.com/perspectives/1b-binance-safu-fund-if-stablecoins-mean-safety-why-do-bitco...
1•CryptoBabe•18m ago•0 comments

Building a Search Engine for the ASX

https://damonphilipross.github.io/2026/01/28/building-a-search-engine-for-the-asx/
1•damindestress•20m ago•0 comments

Show HN: Golden Ratio Face Analysis

https://attractivenesstest.com/golden-ratio-test
2•beast200•20m ago•0 comments

Addressing Asymptomatic AI Harms for Dignified Human-AI Interaction

https://arxiv.org/abs/2601.21920
1•50kIters•21m ago•0 comments

Making Flix Compiler Errors Helpful and Delightful

https://blog.flix.dev/blog/making-flix-compiler-errors-helpful-and-delightful/
2•jorkadeen•23m ago•0 comments

Bootstrap Chain for NixOS: Building the System from a Hand-Auditable Binary Seed

https://chaos.social/@nzbr/115973847897716839
1•birdculture•25m ago•0 comments

Show HN: jceb/jiejie.nvim: Neovim front end for Jujutsu in the style of fugitive

https://github.com/jceb/jiejie.nvim
1•jceb81•25m ago•0 comments

New OpenAI tool renews fears that "AI slop" will overwhelm scientific research

https://arstechnica.com/ai/2026/01/new-openai-tool-renews-fears-that-ai-slop-will-overwhelm-scien...
1•latexr•26m ago•0 comments

Microsoft explores bringing top menu bar to Win 11 with new PowerToys feature

https://www.windowscentral.com/microsoft/windows-11/microsoft-explores-bringing-linux-like-top-me...
2•Tomte•34m ago•2 comments

ProToken: Token-Level Attribution for Federated Large Language Models

https://arxiv.org/abs/2601.19672
1•onurkanbkrc•35m ago•0 comments

Apache Kafka without the hassle, K8s native, Iceberg and SQL

https://github.com/KafScale/platform
1•2pk03•40m ago•0 comments

Amazon Found 'High Volume' of Child Sex Abuse Material in AI Training Data

https://www.bloomberg.com/news/features/2026-01-29/amazon-found-child-sex-abuse-in-ai-training-data
1•nonfamous•44m ago•0 comments

Apple acquires Israeli audio AI startup Q.ai

https://www.reuters.com/business/apple-acquires-audio-ai-startup-qai-2026-01-29/
1•porridgeraisin•47m ago•0 comments

Trump sues IRS and US treasury for $10B over leak of tax returns

https://www.theguardian.com/us-news/2026/jan/29/trump-sues-tax-return-leak
3•mellisacodes•47m ago•0 comments

Show HN: We analyzed AI tool launches – here's why GTM breaks

1•yasu_c•48m ago•0 comments

Taiwan's GDP in 2025 Grew at Fastest Pace Since 2010 (+8.63%)

https://www.wsj.com/economy/taiwans-economy-grew-at-fastest-pace-in-15-years-fcf4f0d2
1•giuliomagnifico•48m ago•0 comments

Show HN: TagCompanion – Point-and-Click Google Tag Manager Implementation

https://www.tagcompanion.com/
1•ybor•51m ago•1 comments

Beyond the click: How brands can influence visibility in AI-generated answers

https://thenextweb.com/news/beyond-the-click-influence-visibility
2•voiquh•51m ago•0 comments