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.

EU Commission targeted in cyberattack, Politico reports

https://www.reuters.com/legal/litigation/eu-commission-targeted-cyberattack-politico-reports-2026...
1•gvieri•3m ago•0 comments

The deployment path is a product

https://jgothelf.substack.com/p/the-deployment-path-is-a-product
1•flail•5m ago•0 comments

The Hunt for the Death Valley Germans

https://otherhand.org/home-page/search-and-rescue/the-hunt-for-the-death-valley-germans/
1•oumua_don17•10m ago•0 comments

Hip Hop HQ Magazine

https://www.thisishiphophq.com.ng/#/
1•mrb3njamins•13m ago•0 comments

Educational Demo of the Solar system and its visitors

https://compo.tv/w/perihelion
1•mfbilling•13m ago•0 comments

Show HN: My CTF Setup with BlackArch in Docker

https://coding-overhead.com/posts/blackarch-docker/
1•ismd•16m ago•0 comments

Game theory's cure for corruption (2015)

https://aeon.co/essays/game-theory-s-cure-for-corruption-make-us-all-cops
1•sammatilda•19m ago•0 comments

EUVD-2024-5409 Synology and Beestation – Improper Encoding or Escaping of Output

https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-54098
1•austinallegro•20m ago•0 comments

The New Mind Control – The internet has spawned subtle forms of influence (2016)

https://aeon.co/essays/how-the-internet-flips-elections-and-alters-our-thoughts
1•sammatilda•20m ago•0 comments

DeepMind Employees Are Unionising

https://www.gdmunion.co.uk
2•nervai•22m ago•0 comments

Where do we go from here?

https://nicolasbouliane.com/blog/life-after-ai
1•nicbou•23m ago•0 comments

How to Create a Virtual Background Using the Red5 WebRTC SDK

https://www.red5.net/blog/virtual-backgrounds-using-the-red5-webrtc-sdk/
1•mondainx•24m ago•0 comments

What's New in PHP 8.6

https://www.php.net/releases/8.6/en.php
16•netol•24m ago•1 comments

The gas pipeline where Ukraine is fighting an underground war with Russia

https://www.bbc.com/news/videos/c8p3vw4q6nzzo
2•ZeljkoS•26m ago•0 comments

Placky Explains Slide Rules (2021)

https://randomlyunique.com/plancky/2021/slide-rules/index.html
1•kqr•31m ago•0 comments

SoduWork – Open-source workbench where agents must prove their work

https://github.com/mdiri-ai/SoduWork
1•WavyPeng•33m ago•0 comments

There's a New Disruptor Throwing Terrible AI Slop at Sports Fans

https://defector.com/theres-a-new-disruptor-throwing-terrible-ai-slop-at-sports-fans
1•abbadadda•33m ago•0 comments

Deadweight: What your Claude Code setup costs on every request

https://github.com/msertdev/deadweight
1•msertdev•37m ago•0 comments

Binaryen – compiler and toolchain library for WebAssembly, written in C++

https://github.com/webassembly/binaryen
1•peter_d_sherman•37m ago•1 comments

I Don't Read Code Anymore [video]

https://www.youtube.com/watch?v=RO52GyQQMKg
2•zwischenzug•39m ago•0 comments

Florida man sentenced to 60 months for distributing monkey torture videos

https://www.justice.gov/opa/pr/miami-area-man-sentenced-60-months-prison-distributing-sexual-tort...
2•illidan1000•43m ago•1 comments

Ruby2ẞhell blog by one of the reporters

https://durendal.sh/blog/ruby-case-mapping-bugs
1•realansgar•44m ago•0 comments

Who Made the Strawberry?

https://strawberry-methodology.pages.dev/
1•DeepLogin•45m ago•0 comments

SSD prices will start going down the second half of next year

https://www.drivevault.io/blog/when-will-hard-drive-prices-come-down.html
36•illidan1000•46m ago•17 comments

NGINX2Root: Remote Code Execution vulnerabilities in Nginx

https://lwn.net/Articles/1108362/
4•bashhq_r•47m ago•0 comments

Taylor Swift's favorite restaurants and hotels

https://wherecelebsgo.com/people/taylor-swift
2•ispotcelebs•48m ago•2 comments

Show HN: Drisp – put app screenshots on true-size 3D device models

https://drint.io/drisp
2•Dan96•49m ago•0 comments

The Hidden Geography of AI [video]

https://www.youtube.com/watch?v=K-qll_Yhfms
2•jonbaer•54m ago•0 comments

Do not buy RAM, compress

https://curiousbits.nl/blog/do-not-buy-ram-compress/
5•Ecno92•54m ago•2 comments

Telegram Dictator

https://macos-beta.telegram.org/dictator/
2•SweetSoftPillow•55m ago•0 comments