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.

SF dishwasher job posting offers $50 an hour

https://www.sfgate.com/food/article/pho-nguyen-dishwasher-sf-22411841.php
1•goldfishgold•55s ago•0 comments

It's a Great Time to Be Rich in New York

https://www.nytimes.com/2026/09/02/nyregion/new-york-income-inequality.html
1•cwwc•3m ago•0 comments

LogSpecter – Schema-aware secret scanner for cloud logs

https://github.com/Jeffy123-zhu/logspecter
1•jeffy0418•5m ago•0 comments

We Used to Log Off

https://www.doc.cc/articles/we-used-to-log-off
1•LouisLazaris•5m ago•0 comments

Qwen3.8-Max-0902 takes second slot on Code Arena beating Claude Opus 5 max

https://arena.ai/leaderboard/code/webdev
2•yogthos•6m ago•0 comments

The Most Important Lesson

https://hackerfactor.com/blog/index.php?/archives/1103-The-Most-Important-Lesson.html
1•1317•8m ago•0 comments

Reflections on Americans' Net Worth

https://www.betonit.ai/p/reflections-on-americans-net-worth
2•cwwc•14m ago•0 comments

Aethel-World

https://github.com/espnrari-dev/aethel-swarm
1•royriace•15m ago•0 comments

Build your own self-hosted P2P search stack

https://github.com/nikitakarpei/my-yacy-node/tree/main/doc/build-your-own-search-stack
1•nikitakarpei•16m ago•1 comments

Steve Ballmer banned by NBA over improper payment to basketball star

https://www.ft.com/content/6b74303c-0190-4e86-8a7b-feaf3dd29658
2•JumpCrisscross•17m ago•1 comments

Postgres Calculations and the Ambiguity of Null

https://www.crunchydata.com/blog/postgres-calculations-and-the-ambiguity-of-null
1•birdculture•24m ago•0 comments

Against Proxy Optimization

https://doi.org/10.1111/phpr.70138
2•2grue•25m ago•0 comments

Gitmir just beat all the competition

https://gitmir.com/lab
2•venediktov•27m ago•1 comments

Pulitzer Prize for General Nonfiction

https://en.wikipedia.org/wiki/Pulitzer_Prize_for_General_Nonfiction
2•chistev•28m ago•2 comments

JPMorgan curbed lending to Jane Street as trading firm muscled into bond market

https://www.ft.com/content/07e849ac-ea87-4227-81d4-7f18b0d7d473
2•JumpCrisscross•31m ago•0 comments

Workplace surveillance is on the rise, spurred by AI

https://knowablemagazine.org/content/article/society/2026/surveillance-at-work-is-increasing
2•knowablemag•31m ago•0 comments

Show HN: A MT7921U USB Driver for macOS Network Sniffing

https://github.com/Network-Weather/mt76-usb-macos
2•dweekly•33m ago•0 comments

Ask HN: How to Trace Website Ownership

2•nsinghal12•42m ago•1 comments

Why Software Developers Are Highly Unrepresentative of Broader AI Use

https://paulkedrosky.com/why-software-developers-are-hiunrepresentative-of-broader-ai-use/
2•thoughtpeddler•42m ago•0 comments

Srest – A TUI for the Slurm REST API Built in Go

https://srest.scszero.com/docs.html
1•SergioZ3R0•45m ago•0 comments

Show HN: Slop University

https://slop.university/
3•benswift•49m ago•0 comments

How to Predict Uncertainty

https://francesco215.github.io/autoregressive_diffusion/uncertainty.html
1•Sacco215•50m ago•0 comments

ChatGPT for Healthcare

https://openai.com/index/chatgpt-connects-health-records-and-healthcare-sources/
1•Murfalo•50m ago•1 comments

Habab Discord Quest Extension – Open-source browser extension

https://github.com/xloqia03/Habab-Discord-Quest-Extension
1•xloqia03•51m ago•0 comments

Uberexits Nigeria switching of service mid rides

https://twitter.com/eboigbeanita/status/2095196885430546878
1•OoTheNigerian•52m ago•1 comments

Show HN: CoOS – desktop app where an agent builds your CRM/ERP as local plugins

https://pirol.ai/
1•grischajacobs•52m ago•0 comments

Did Vibe Coders win? Is this our end?

1•s_u_d_o•53m ago•0 comments

Ask HN: Are coding agents too cautious because they estimate work in human time?

1•gabosarmiento•53m ago•0 comments

'Insane data': Duke professor Dan Ariely accused of additional research fraud

https://www.dukechronicle.com/article/duke-university-professor-dan-ariely-accused-of-additional-...
4•aanet•54m ago•1 comments

ArsDigita University: 25 Years Later

https://medium.com/@tomhickerson/arsdigita-university-25-years-later-152d135441c3
1•so-cal-schemer•59m ago•2 comments