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.

ECB reins in Revolut over rapid-fire product launches

https://www.scottishfinancialnews.com/articles/ecb-reins-in-revolut-over-rapid-fire-product-launches
1•nixass•2m ago•0 comments

Enjoyable Tasks, Contracting and Automation [pdf]

https://www.nber.org/system/files/working_papers/w35309/w35309.pdf
1•pupperino•3m ago•0 comments

Fable in a Data Analyics Harness

https://chris-parmer.com/first-look-at-fable/
1•robertclaus•3m ago•0 comments

History of WYSIWYG editors and CMS: a timeline (2022)

https://www.tiny.cloud/blog/history-of-cms-wysiwyg/
1•peter_d_sherman•4m ago•0 comments

The Missing Link Between Agents and Applications

https://www.langchain.com/blog/agents-and-applications
1•cbromann•5m ago•0 comments

The White House Freakout over the Epstein Files

https://www.nytimes.com/2026/06/10/magazine/trump-epstein-files-white-house-vance-doj.html
5•JumpCrisscross•7m ago•0 comments

Claude Fable 5 missed a bug that Sonnet 4.6 caught

https://alikhallad.com/i-tested-claude-fable-5-against-private-benchmarks-it-has-never-seen-here-...
3•startages•7m ago•0 comments

SoftBank Attempt to Get $6B OpenAI Margin Loan Stalls

https://finance.yahoo.com/markets/stocks/articles/softbank-attempt-6-billion-openai-042525869.html
2•adriand•7m ago•0 comments

The first century Roman aqueduct at Segovia carried water into the 1970s

https://maketecheasier.com/j-the-roman-aqueduct-at-segovia-built-around-the-first-century-ad-with...
3•dxs•7m ago•0 comments

Building a serializable database in Rust, and measuring what it costs

https://www.yahyaehsan.dev/writing/building-crackeddb.html
2•YahyaEhsansub•8m ago•0 comments

Speed Is a Signal: When Faster Replies Increase Hiring Likelihood

https://pubsonline.informs.org/doi/abs/10.1287/mnsc.2024.06185
2•speckx•8m ago•0 comments

Show HN: Which F1 Team Website Is Fastest?

https://lightest.app/reports/kcokc
2•defly•8m ago•0 comments

Dimidium – terminal color scheme crafted with science

https://github.com/dofuuz/dimidium
2•microflash•9m ago•0 comments

nanoarrow

https://github.com/apache/arrow-nanoarrow
2•tosh•9m ago•0 comments

Reviewing Code in the Agent Era

https://twitter.com/penzington/status/2064387219079462948
2•cristinacordova•9m ago•0 comments

Infinite precision intermediate arithmetic: how much would break?

https://internals.rust-lang.org/t/infinite-precision-intermediate-arithmetic-how-much-would-break...
2•logickkk1•10m ago•0 comments

Social media platforms warned over role in fuelling Belfast riots

https://www.ft.com/content/4b62b71c-949a-4600-b03c-813636cf9071
2•mmarian•10m ago•0 comments

The Dynamo and the Computer: The Modern Productivity Paradox (1989) [pdf]

https://www.almendron.com/tribuna/wp-content/uploads/2018/03/the-dynamo-and-the-computer-an-histo...
5•simonpure•10m ago•0 comments

Show HN: I built a microlearning app to learn personal finance

https://finance.usescroll.app
4•maclinz•12m ago•2 comments

Show HN: Vocast – Turn articles into self-hosted podcast feeds using local TTS

https://github.com/cnrmurphy/vocast
2•8bitsout•12m ago•0 comments

I Hacked into the Worst E-Bike and Fixed It [video]

https://www.youtube.com/watch?v=hPrtVGimBYs
4•alexis-d•13m ago•0 comments

A day after discovery, Meta pulls facial recognition code from its smart glasses

https://www.wired.com/story/meta-removes-face-recognition-code-meta-ai-app-smart-glasses/
3•thunderbong•13m ago•0 comments

Why SpaceX 2040 Revenue FCST $4.3T in highly unlikely

https://www.matteast.io/spacex-escape-velocity.html
3•meast•13m ago•0 comments

A small, self-hosted HTTP API that turns HTML, URLs and JSON into PDF/A-3a

https://pdf-ua-api.bambamboole.com/
2•robin_reala•16m ago•0 comments

Show HN: Meadow Mind – a 7B diffusion LLM plays Gym games with zero training

https://github.com/Hey-Meadow/meadow-mind
2•akaiHuang•16m ago•0 comments

Flock Blocks Itself from Wayback Machine: How Companies Can Erase Their History

https://ipvm.com/reports/flock-wayback
3•jhonovich•17m ago•0 comments

SplitShot

https://splitshot.co/
2•kolachalama•18m ago•0 comments

GeoLibre 1.0

https://geolibre.app/
5•jonbaer•18m ago•0 comments

Using biotelemetry to assess drone effects on whale sharks

https://esajournals.onlinelibrary.wiley.com/doi/10.1002/ecs2.70575
2•PaulHoule•19m ago•0 comments

CC-Ledger: Cost Controls for Claude Code

https://ccledger.dev
2•tejpalv•19m ago•1 comments