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•7mo 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•7mo 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•7mo 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.

Vietnam's EV champion is bleeding cash

https://www.economist.com/business/2025/12/11/vietnams-ev-champion-is-bleeding-cash
1•smurda•1m ago•0 comments

Show HN: MemoryGate – zero-friction trust-correcting memory for agents

https://memorygate.io
1•bryantn•3m ago•0 comments

ChatGPT 5.2: What It Changed, and Why the Internet's Take Is Mostly Wrong

https://karozieminski.substack.com/p/openai-chatgpt-52-vs-51-reliability-what-changed-why-everyon...
1•zenonBz•3m ago•0 comments

GLM Proxy: transforms Anthropic Messages API requests to Z.ai GLM-4.7 API format

https://github.com/dejay2/glmproxy
1•sea-gold•3m ago•1 comments

Why do men find it so hard to connect with other people, and their own emotions?

https://www.nytimes.com/2025/12/23/magazine/masculinity-crisis-norah-vincent.html
1•thelastgallon•4m ago•0 comments

NeuroxAI – GPU-Accelerated Neuromorphic Computing Platform

https://github.com/TheRemyyy/neurox-ai
1•TheRemyyy•5m ago•1 comments

Improved Human Skin Vitamin C Levels and Skin Function After Kiwifruit Intake

https://www.jidonline.org/article/S0022-202X(25)03509-2/fulltext
1•manidoraisamy•6m ago•0 comments

Ask HN: Did Firecracker Win Completely?

1•monus•7m ago•0 comments

Request for comments: mathematical paper on naturist venues (SFW) [pdf]

https://github.com/james-junghanns/Papers/blob/main/On%20the%20Dynamics%2C%20Equilibria%2C%20and%...
2•qubex•8m ago•1 comments

Certificates in AI: Learn but Verify

https://cacm.acm.org/research/certificates-in-ai-learn-but-verify/
1•eustoria•11m ago•0 comments

Election betting on prediction markets apps is set to boom ahead of midterms

https://www.npr.org/2025/12/23/nx-s1-5647749/rise-of-prediction-markets
2•geox•12m ago•0 comments

Instalamb, my browser plugin to control Instagram

https://www.flourish.org/2024/09/instalamb-my-browser-plugin-to-control-instagram/
1•eustoria•12m ago•0 comments

Easel Turns One One year of building my own IDE in Clojure

https://blog.phronemophobic.com/easel-one-year.html
1•todsacerdoti•14m ago•0 comments

Ask HN: How to create a scrollable picker (like iOS/Android clock) in HTML?

1•ramsicandra•14m ago•0 comments

Show HN: Commandry – A Command-Line Parser for Standard ML

https://github.com/PerplexSystems/commandry
1•glorifiedgluer•14m ago•0 comments

Keep the Robots Out of the Gym

https://danielmiessler.com/blog/keep-the-robots-out-of-the-gym
1•gmays•17m ago•0 comments

Show HN: Devion – AI powered release notes from your commits

https://www.devion.dev/
1•shauryaasingh•17m ago•0 comments

Human evolution's biggest mystery has started to unravel

https://www.cnn.com/2025/12/26/science/denisovans-dragon-man-human-evolution-mystery
2•Brajeshwar•18m ago•0 comments

The Other Homo Sapiens

https://aeon.co/essays/why-one-branch-on-the-human-family-tree-replaced-all-the-others
1•Brajeshwar•18m ago•0 comments

Flock and Urban Surveillance

https://computer.rip/2025-12-26-Flock-and-Urban-Surveillance.html
1•Brajeshwar•18m ago•0 comments

Programming vs. Coding vs. Software Engineering (2019)

https://rakhim.exotext.com/programming-vs-coding-vs-software-engineering
1•vrnvu•18m ago•0 comments

ChatGPT and the Meaning of Life

https://scottaaronson.blog/?p=9030
1•guillego•19m ago•0 comments

Ask HN: What software tool did you avoid for years but now rely on daily?

1•xthe•20m ago•0 comments

Show HN: IntentusNet – Deterministic Execution and Replay for AI Agent Systems

1•balachandarmani•21m ago•0 comments

How AI Is Shaping My Investment Portfolio for 2026

https://philippdubach.com/2025/12/12/how-ai-is-shaping-my-investment-portfolio-for-2026/
1•7777777phil•23m ago•0 comments

Concurrent Hash Table Designs

https://bluuewhale.github.io/posts/concurrent-hashmap-designs/
1•signa11•23m ago•0 comments

Flyspeck: The formal proof of the Kepler conjecture

https://github.com/flyspeck/flyspeck
1•throwoutway•25m ago•0 comments

How the Highest-Earning Millennials Made It to the Top of Their Generation

https://www.wsj.com/lifestyle/careers/millennials-money-careers-wealth-analysis-182a1ebb
2•gmays•31m ago•0 comments

Show HN: Workaround for YouTube's "Save to Watch Later" Broken in Firefox

https://gist.github.com/beenotung/6cfb46bd5f4f800ac5393317536714fe
2•aabbcc1241•33m ago•0 comments

How to construct complex data declaratively and progressively?

https://github.com/allmonday/pydantic-resolve
2•tank-34•34m ago•0 comments