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•8mo 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•8mo 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•8mo 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: Tiny Toy Network – a neural net to practice backpropagation

https://hollyemblem.github.io/tiny-toy-network/
1•dandelionv1bes•2m ago•0 comments

Ringmpsc: Lock-free MPSC channel in Zig achieving 50B messages/second

https://github.com/boonzy00/ringmpsc
1•g0xA52A2A•2m ago•0 comments

Bending Emacs Episode 10: AI / LLM agent-shell [video]

https://www.youtube.com/watch?v=R2Ucr3amgGg
1•xenodium•3m ago•0 comments

Show HN: Go-brrr – Benchmarks Go vs. Go and declares a winner anyway

https://github.com/jackprscott/go-brrr
1•jackprescott•3m ago•0 comments

3D Map of the Moai Statue Quarry at Rano Raraku, Rapa Nui (Easter Island)

https://www.arcgis.com/apps/instant/3dviewer/index.html
2•nudin•3m ago•0 comments

Show HN: Frida UI Interact with Frida devices, processes, directly from browser

https://github.com/adityatelange/frida-ui
1•adityatelange•5m ago•0 comments

Why the tech world thinks the American dream is dying

https://www.msn.com/en-us/money/other/why-the-tech-world-thinks-the-american-dream-is-dying/ar-AA...
1•akyuu•5m ago•0 comments

Rokeno.com – AIO Gen AI

https://rokeno.com
1•robsch•6m ago•0 comments

Gravitoelectromagnetism

https://en.wikipedia.org/wiki/Gravitoelectromagnetism
1•JPLeRouzic•7m ago•0 comments

Show HN: A 3D music website built with React Three Fiber

https://kratzen-und-fauchen.com
1•__lerk•9m ago•0 comments

The A in AGI Stands for Ads

https://ossa-ma.github.io/blog/openads
10•calcifer•10m ago•0 comments

Ask HN: Can abstract systems admit stress–potential field equations?

1•tgrrr9111•11m ago•0 comments

OpenAI appears to be moving toward ads in ChatGPT for logged-in U.S. users

1•SRMohitkr•12m ago•0 comments

Learning Jai via Advent of Code

https://www.forrestthewoods.com/blog/learning-jai-via-advent-of-code/#big_ideas
1•sergiotapia•14m ago•0 comments

Ask HN: How to get a job after a career break?

3•shivajikobardan•14m ago•0 comments

Show HN: Daily-web: your daily-updates web feed

https://github.com/garyo/daily-web
1•darkstarsys•19m ago•0 comments

Tired of messy GitHub PRs? Chrome extensions enforce descriptions and size limit

https://chromewebstore.google.com/detail/pr-description-guard/idfeaafjnjnfknjbfbpnlgphjhohfpah
1•afrasiyabhaider•20m ago•1 comments

Show HN: 21st.fund, an AI tool to discover grants and non-dilutive funding

https://www.21st.fund/
1•udit_50•21m ago•0 comments

Simple Browser AI

https://simplebrowserai.pagedrop.io/
1•antidotumagen•23m ago•0 comments

Email obfuscation: What works in 2025?

https://spencermortensen.com/articles/email-obfuscation/
1•blackstache•26m ago•0 comments

At least 5k dead in Iran unrest, official says

https://www.reuters.com/business/media-telecom/iranian-official-says-verified-deaths-iran-protest...
2•wslh•26m ago•0 comments

How AI makes for better software (& companies)

https://gmays.com/how-ai-makes-for-better-software-companies/
2•gmays•29m ago•0 comments

Our top Core Web Vitals recommendations for 2023

https://web.dev/articles/top-cwv
1•Tomte•30m ago•0 comments

Fear and Loathing of the English Passive (2010)

https://www.lel.ed.ac.uk/~gpullum/passive_loathing.html
2•Tomte•30m ago•1 comments

Show HN: Keepthat.link – rudimentary, no-frills bookmarks

https://www.keepthat.link/
1•e_xyz•32m ago•0 comments

Childhood Neighbors Influence Occupation Choice [pdf]

https://drive.google.com/file/d/17Pq41ZzfwEdm-YrmWCMkvU0E4T-SXzPp/view
1•elsewhen•33m ago•0 comments

Show HN: Zsweep – Play Minesweeper using only Vim motions

https://zsweep.com
1•oug-t•36m ago•4 comments

Nuclear Weapons Are Now ESG Compliant

https://news.slashdot.org/story/26/01/14/144240/nuclear-weapons-are-now-esg-compliant
1•7777777phil•37m ago•0 comments

The Truth Architecture – Why Web3 Is the Only Way Out

https://aegistrail.github.io/posts/Why-Web3-is-the-only-way-out/
2•patronage•38m ago•0 comments

Humans are taking our jobs!

https://humanthreat.xyz/
2•modinfo•39m ago•0 comments