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.

The Gelato Calculator

https://www.absurdlyoptimized.com/recipes/gelato/
1•bkazez•3m ago•0 comments

Google leaking unreleased indie game information through Google Docs (Reddit)

https://old.reddit.com/r/IndieDev/comments/1vfwuf5/a_player_found_out_the_actual_name_of_my_games/
1•greazy•4m ago•0 comments

Lidl Group stops buying company EVs:Why the Schwarz group is turning back to ICE

https://www.businessinsider.de/wirtschaft/warum-die-schwarz-gruppe-wieder-auf-verbrenner-statt-e-...
1•Markoff•5m ago•0 comments

Ask HN: Is there a duplex voice mode in Claude Code?

1•anoopbln•16m ago•0 comments

Internal Report Shows TikTok Kept Safety Feature from Millions

https://news.bloomberglaw.com/privacy-and-data-security/internal-report-shows-tiktok-kept-safety-...
1•BlueBerry2001•18m ago•0 comments

Show HN: Swipetris: Wordle-like daily falling blocks for your phone

https://swipetris.com
1•bitbonsai•19m ago•0 comments

The Story of Mac: A Just-So Story

https://gigamonkeys.com/book/macros-defining-your-own
1•kscarlet•20m ago•0 comments

Forward-deployed engineers are the AI industry's latest talent obsession

https://techcrunch.com/2026/07/30/forward-deployed-engineers-are-the-ai-industrys-latest-talent-o...
2•mgh2•20m ago•0 comments

Gender differences in response to requirements in job adverts [pdf]

https://www.bi.team/wp-content/uploads/2022/03/Gender-differences-in-response-to-requirements-in-...
2•lemaudit•21m ago•0 comments

Incident unsanctioned agent behaviour during cyber testing

https://www.aisi.gov.uk/blog/incident-report-unsanctioned-agent-behaviour-during-cyber-testing
1•ar37b•22m ago•0 comments

Italy putting nearly all major cities on highest heat alert

https://www.bbc.com/news/articles/cr7k4gdrgljo
10•jacquesm•31m ago•3 comments

Is GitHub politically influenced and motivated?

1•maram•32m ago•1 comments

Public Metadata Problem (NCBI Accessions: BioProject, Biosample/Geo/SRA/Genbank)

https://github.com/vy-phung/OpenBioData
1•VyPhung•33m ago•0 comments

SpaceX's AI Splurge Puts a Damper on Debut Earnings After IPO

https://news.bloomberglaw.com/capital-markets/spacex-exceeds-revenue-estimates-in-first-earnings-...
1•1vuio0pswjnm7•33m ago•0 comments

Anxious Chinese students are trusting AI to help pick colleges and majors

https://restofworld.org/2026/china-ai-bot-college-advice/
2•nanfinitum•35m ago•0 comments

Kerala wants some of its forest spots taken off Google Maps

https://indianexpress.com/article/explained/kerala-illegal-geotagging-forests-ecologically-sensit...
1•thisislife2•37m ago•0 comments

Compass, a local-first code graph built in Rust for humans and AI agents

https://github.com/crabbuild/compass
2•forhappy•39m ago•0 comments

What Bitcoin sextortion emails actually earned

https://claude.ai/code/artifact/4806cb5d-8582-460e-ab31-2a321f1b23cb
1•Lucent•41m ago•0 comments

Ling 3.0 Flash: openweight 124B-A5.1B competitive with MiniMax M2.7

https://huggingface.co/inclusionAI/Ling-3.0-flash
2•nateb2022•46m ago•0 comments

Show HN: QuietUtils – free browser-only PDF and image tools, no uploads

https://quietutils.com/
1•JustasMQAQ•49m ago•0 comments

I made a tactile 3D map for my blind friend's birthday

https://www.reddit.com/r/BestofRedditorUpdates/comments/1vfwkrv/i_made_a_tactile_3d_map_for_my_bl...
2•georgecmu•51m ago•0 comments

Upper Mesopotamia

https://en.wikipedia.org/wiki/Upper_Mesopotamia
1•marysminefnuf•51m ago•0 comments

Gwern's Guardian Angels

https://twitter.com/bekhovsgun/status/2084863523692093669
5•reb•52m ago•0 comments

The sale of Electronic Arts has been finalized

https://www.bbc.com/news/articles/cjejyl34345o
29•1659447091•52m ago•4 comments

Electricity Pricing in the Age of AI

https://power2026.ai/
1•mellosouls•55m ago•0 comments

First Builder Battle Starts Thurs

https://line4line.dev/
1•goldkey•1h ago•0 comments

Tell HN: "Update to iOS 18.7.8" is updating users to iOS 26; Apple PSA

2•lynndotpy•1h ago•0 comments

Why Batteries Are Changing Faster Than the Industry Expected [video]

https://www.youtube.com/watch?v=pH-Tvba0o5E
1•thelastgallon•1h ago•0 comments

Zero-Mem: Zero-Token Memory Operations for LLM Agents

https://arxiv.org/abs/2607.29377
3•theanonymousone•1h ago•0 comments

Don't abandon Mozilla Firefox just yet (2017)

https://blog.jeaye.com/2017/12/16/firefox/
2•meysamazad•1h ago•1 comments