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.

Configuration Complexity Clock (2012)

http://mikehadlow.blogspot.com/2012/05/configuration-complexity-clock.html
1•dwrodri•54s ago•0 comments

Figma Console MCP

https://github.com/southleft/figma-console-mcp
1•handfuloflight•1m ago•0 comments

Show HN: QuiverKit – 62 developer tools that run offline

https://quiverkit.dev
1•ensardev•2m ago•0 comments

Ask HN: I am building a app to deep search bookmarks from browser, X etc.

2•shafkathullah•5m ago•1 comments

Were you watching the World Cup or playing chess?

https://mastodon.online/@lichess/116952699800947773
1•plaguna•8m ago•0 comments

Agent solves problem in JavaScript but fails in TypeScript

https://twitter.com/dillon_mulroy/status/2079400950280663126
1•tosh•8m ago•0 comments

Show HN: Qscreen – tmux-like session manager for Windows PowerShell

https://github.com/dualface/qscreen
1•dualface•9m ago•0 comments

Set Cover Problem

https://en.wikipedia.org/wiki/Set_cover_problem
1•tosh•12m ago•0 comments

European Password Manager Shares [..] With State-Certified Russian Firm

https://www.occrp.org/en/investigation/european-password-manager-shares-origins-and-updates-with-...
2•defly•16m ago•1 comments

Ask HN: What are opinions on browser password manager vs. standalone?

2•omnifischer•16m ago•1 comments

Memory Safety's Hardest Problem

https://matklad.github.io/2026/07/20/memory-safety-hardest-problem.html
1•ingve•17m ago•0 comments

Ask HN: Claude Code or Codex?

2•czeizel•18m ago•3 comments

Palantir in Europe: 40 documented customer relationships across 14 countries

https://ciphercue.com/blog/palantir-in-europe-governments-companies-2026
1•adulion•19m ago•0 comments

KDE for Enterprise Needs a Strong PIM Infrastructure

https://ervin.ipsquad.net/blog/2026/07/21/kde-for-entreprise-needs-a-strong-pim-infrastructure/
4•hebus•20m ago•0 comments

DeepSWE – Best Benchmark for Evaluating AI Coding Agents?

https://www.i-programmer.info/news/105-artificial-intelligence/19016-deepswe-best-benchmark-for-e...
1•aquastorm•23m ago•1 comments

What if they are all wrong? (2020)

https://igorpak.wordpress.com/2020/12/10/what-if-they-are-all-wrong/
1•kkoncevicius•24m ago•0 comments

Armored Cars, Now on the American Road

https://www.nytimes.com/2026/07/20/style/armored-cars-bulletproof-american-drivers.html
2•reaperducer•24m ago•0 comments

Building Anthropic [video]

https://www.youtube.com/watch?v=om2lIWXLLN4
1•tosh•25m ago•0 comments

Windows 11 OpenSSH agent to WSL2

https://addshore.com/2023/07/windows-11-openssh-agent-to-wsl2/
1•ankitg12•27m ago•0 comments

CodeSizer: Why is that binary so big?

https://github.com/Wren6991/CodeSizer
1•birdculture•28m ago•0 comments

Ransomware attack on fairlife (company owned by Coca Cola)

https://www.sec.gov/Archives/edgar/data/21344/000162828026048466/ko-20260716.htm
1•wolfi1•28m ago•0 comments

Daily Urban Systems: where people live and where they work (the Netherlands)

https://regio.toekom.st/
2•overboil•30m ago•0 comments

Controlling user access in ScalarDB Cluster by using OIDC-based JWT tokens

https://medium.com/scalar-engineering/controlling-user-access-in-scalardb-cluster-by-using-oidc-b...
1•josh-scalar•30m ago•0 comments

Whats App Hack

https://news.ycombinator.com/newsguidelines.html
1•Armanlhan•33m ago•0 comments

Trump administration reportedly reviving push to ban Chinese AI models, Kimi K3

https://www.tomshardware.com/tech-industry/artificial-intelligence/trump-administration-reportedl...
1•virgildotcodes•34m ago•1 comments

US is building 3000 data centers. The economics aren't as great as they seem

https://qz.com/data-center-construction-permanent-jobs-cliff-071026
2•robtherobber•36m ago•0 comments

Optique 1.2.0: fluent modifiers, deferred values, and new integrations

https://github.com/dahlia/optique/discussions/877
2•dahlia•36m ago•0 comments

Show HN: WhimPop – A macOS menu that pops up under your cursor

https://whimpop.com/
1•whimbyte•39m ago•0 comments

How to Love the World More: George Saunders on the Courage of Uncertainty

https://www.themarginalian.org/2026/07/20/george-saunders-uncertainty/
1•the-mitr•42m ago•0 comments

Show HN: Clair – open-source semantic news API

https://clair.im
1•kaanersoy•46m ago•0 comments