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.

AWS lets agents drive virtual desktops which could cost 500k tokens per click

https://www.theregister.com/2026/05/06/aws_workspaces_agent_access/
2•beardyw•5m ago•1 comments

PostHog Code

https://posthog.com/code
2•dotmanish•5m ago•0 comments

Bitter Lessons from the ISSpresso

https://mceglowski.substack.com/p/bitter-lessons-from-the-isspresso
2•kome•7m ago•0 comments

.de domains were 'down' for 2 hours

https://status.denic.de/pages/incident/592577eab611ce1e0d00046f/69fa60ef9d12f5057a974f38
2•riedel•8m ago•1 comments

AI is starting to beat doctors at making correct diagnoses

https://www.science.org/content/article/ai-starting-beat-doctors-making-correct-diagnoses
3•rxmux•14m ago•0 comments

SensorHub – The event-driven version of Clawhub (giving AI agents "ears")

https://world2agent.ai/hub
3•WayLonWen•15m ago•0 comments

Pensero – I knew I was doing the work. I just couldn't prove it

https://pensero.ai/blog/i-knew-i-was-doing-the-work.-i-just-couldn-t-prove-it.
2•sabatesduran•17m ago•0 comments

New PyXHDL Release (Python Frontend To VHDL And Verilog)

https://github.com/davidel/pyxhdl
2•dadaz•17m ago•0 comments

Academics Need to Wake Up on AI

https://www.popularbydesign.org/p/academics-need-to-wake-up-on-ai
2•barry-cotter•27m ago•1 comments

The reinvention of tradition: charismatic leadership in Silicon Valley

https://www.tandfonline.com/doi/epdf/10.1080/1600910X.2026.2666346
1•kome•29m ago•0 comments

Reverse-engineering the 1998 Ultima Online demo server

https://draxinar.github.io/articles/2026-05-01-uodemo-reverse-engineering.html
2•notsentient•30m ago•0 comments

Singapore introduces caning for boys who bully others at school

https://www.theguardian.com/world/2026/may/06/singapore-caning-school-bullies
4•rustoo•32m ago•0 comments

Bottlenecks and Productivity

https://calnewport.com/on-bottlenecks-and-productivity/
1•tapanjk•33m ago•0 comments

Google DeepMind workers vote to unionize over military AI deals

https://www.wired.com/story/google-deepmind-workers-vote-to-unionize-over-military-ai-deals/
4•ascorbic•36m ago•0 comments

RFK Jr. plans to curb antidepressants, which he falsely compares to heroin

https://arstechnica.com/health/2026/05/rfk-jr-plans-to-curb-antidepressants-which-he-falsely-comp...
5•rbanffy•43m ago•1 comments

Complete .de TLD was off-line for 4 hours

https://blog.denic.de/en/denic-reports-dnssec-disruption-affecting-de-domains/
2•teekert•44m ago•2 comments

Reflections on the motive power of heat (1890)

https://gutenberg.org/cache/epub/78610/pg78610-images.html
1•petethomas•47m ago•0 comments

Ask HN: Is the future everyone having 100 MCP processes running on their PC?

2•ex-aws-dude•48m ago•1 comments

Integrate Cashfree Payments in less than 7 minutes

https://tech.cashfree.com/building-cashfree-agent-skills-a-task-aware-knowledge-layer-for-ai-codi...
1•shritama_saha•52m ago•0 comments

Gitea Runner 1.0.0 is released

https://blog.gitea.com/release-of-runner-1.0.0/
2•jandeboevrie•53m ago•0 comments

Second Circuit Sidesteps "Server Test" in Embedded Video Copyright

https://natlawreview.com/article/second-circuit-sidesteps-server-test-embedded-video-copyright-ru...
1•petethomas•58m ago•0 comments

Some deaf children are hearing again because of a new gene therapy

https://www.vox.com/future-perfect/487590/gene-therapy-crispr-deafness-food-and-drug-administration
1•yanis_t•59m ago•0 comments

A game-changer for good health? Scientists believe 'we are when we eat'

https://www.theguardian.com/commentisfree/2026/may/05/game-changer-good-health-scientists-we-are-...
3•akbarnama•59m ago•0 comments

Can language models rebuild programs from scratch?

https://programbench.com
2•beau•1h ago•1 comments

American History X was a hit but ego blew my career, says director

https://www.thetimes.com/culture/film/article/tony-kaye-edward-norton-american-history-x-zbwcg7chq
1•petethomas•1h ago•0 comments

The guide to RL environments: building and scaling them in the LLM era

https://huggingface.co/spaces/AdithyaSK/rl-environments-guide
2•babelfish•1h ago•0 comments

Show HN: Cargo-affect – Plan affected Rust workspace tests from a Git diff

https://github.com/lightsofapollo/cargo-affect
1•lightsofapollo•1h ago•0 comments

Pennsylvania sues Character.AI over claims chatbot posed as doctor

https://www.npr.org/2026/05/05/nx-s1-5812861/characterai-chatbot-medical-advice-pennsylvania-lawsuit
2•geox•1h ago•0 comments

Math Behind "AI Will Replace Engineers" Is Embarrassingly Wrong

https://www.youtube.com/watch?v=ItSLny8on5I
2•amcorvi•1h ago•0 comments

ReMarkable Paper Pure with Marker

https://www.aucklanddutyfree.co.nz/remarkable-paper-pure-with-marker.html
1•hboon•1h ago•0 comments