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

How Do You Know If a Skill Is Any Good? LLM-as-Judge Scoring

http://instructionmanuel.com/scoring-skills-with-llm-as-judge
1•eigenBasis•1m ago•0 comments

US judge will not rubber-stamp Elon Musk settlement with SEC

https://www.reuters.com/legal/government/us-judge-will-not-rubber-stamp-elon-musk-settlement-with...
1•tartoran•3m ago•0 comments

Next.js May 2026 security release

https://vercel.com/changelog/next-js-may-2026-security-release
1•bcye•4m ago•0 comments

Onboarding Is a Hazing Ritual and You Call It Agile

https://dhung.dev/blog/onboarding-hazing-ritual
1•birdculture•5m ago•0 comments

Judge rules DOGE cancellation of humanities grants was unconstitutional

https://apnews.com/article/trump-doge-humanities-funding-cuts-dda1383436c41be08da3bbf7cc08818e
3•1659447091•6m ago•2 comments

NixOS and Secrets

https://isabelroses.com/blog/nixos-and-secrets/
2•isabelroses•6m ago•0 comments

Show HN: Signegy - free in-browser PDF toolkit, no signup

https://signegy.com/
1•DiligentPeasant•6m ago•0 comments

Ask HN: What kind of computer language will LLM use?

1•folderquestion•9m ago•1 comments

Anthropic weighs deal for near $1T valuation as revenue surges

https://www.ft.com/content/a40cafcc-0fa4-4e70-9e24-90d826aea56d
3•alecco•11m ago•1 comments

I made Meta's TRIBE v2 watch YouTube in real time

https://www.youtube.com/watch?v=I4oGPLMVoC0
1•merlin_mimer•11m ago•0 comments

Compound drivers of Antarctic sea ice loss and Southern Ocean destratification

https://www.science.org/doi/10.1126/sciadv.aeb0166
2•littlexsparkee•12m ago•0 comments

General Motors fined $12.75M for selling location data

https://privacy.ca.gov/2026/05/when-it-comes-to-data-privacy-consumers-must-be-in-the-drivers-sea...
2•jboggan•13m ago•1 comments

Show HN: Tuxedo – A fast, keyboard-driven terminal UI for todo.txt

https://github.com/webstonehq/tuxedo
1•mikenikles•13m ago•1 comments

Scaling Trusted Access for Cyber with GPT‑5.5 and GPT‑5.5‑Cyber

https://openai.com/index/gpt-5-5-with-trusted-access-for-cyber/
2•allanrbo•18m ago•0 comments

55 Hours of Codex /Goal: What a Port Task Teaches You About Autonomous Loops

https://vexjoy.com/posts/55-hours-of-codex/
1•AndyNemmity•21m ago•0 comments

Discord Automates ScyllaDB Clusters at Scale

https://discord.com/blog/how-discord-automates-scylladb-clusters-at-scale
1•cyndunlop•21m ago•0 comments

Use of the ML-DSA Signature Algorithm in the Cryptographic Message Syntax

https://datatracker.ietf.org/doc/rfc9882/
1•mooreds•22m ago•0 comments

Meta Shuts Down End-to-End Encryption for Instagram Messaging

https://www.pcmag.com/news/meta-shuts-down-end-to-end-encryption-for-instagram-dms-messaging
11•tcp_handshaker•25m ago•2 comments

Pagaya investor seeks refund, claiming AI real estate fund wiped 80% of capital

https://www.calcalistech.com/ctechnews/article/3a0p63mof
3•tcp_handshaker•26m ago•0 comments

ASML to invest $1.5B in Mistral at over $11B valuation

https://www.calcalistech.com/ctechnews/article/bycca4sclg
3•tcp_handshaker•27m ago•0 comments

Try Out AgentBase

https://useagentbase.com/
2•justin22a•28m ago•2 comments

Fixing Markdown Syntax Is a Nightmare

https://mdview.io/s/fixing-markdown-syntax-is-a-nightmare
1•Igor_Wiwi•28m ago•1 comments

Android application to switch display into side-by-side VR mode

https://github.com/dmikushin/android-native-sbs
2•Eridanus2•30m ago•0 comments

Incremental History Searching with .inputrc

https://codeinthehole.com/tips/the-most-important-command-line-tip-incremental-history-searching-...
1•kamaraju•31m ago•0 comments

What's a Lakestream?

https://blog.2minutestreaming.com/
2•sijieg•34m ago•0 comments

My Response to Open Web Censorship Calls-to-Action

https://www.scottrlarson.com/blog/blog-response-open-web-action-calls/
1•trinsic2•34m ago•0 comments

Local Autonomous Security Agent-QWEN2.5-7B+MCP Agent Loop

https://huggingface.co/automajicly
2•automajicly•34m ago•0 comments

AWS data center outage hits trading on Fanduel, Coinbase

https://www.cnbc.com/2026/05/08/aws-outage-data-center-fanduel-coinbase.html
4•bigflern•35m ago•0 comments

Claude Conference 2026 Videos

https://www.youtube.com/playlist?list=PLmWCw1CzcFim2obQ-w3ohbULOfwp5lApR
2•rmason•35m ago•0 comments

Trump Media and Technology Group reports $405.9M net loss, $900k revenue

https://finance.yahoo.com/markets/stocks/articles/trump-media-technology-group-reports-203000071....
7•computerliker•40m ago•0 comments