dynamic-js-audit

Audit dynamic JavaScript loading patterns for security risks and misconfigurations.

Updated Jan 26, 2026
One-click install
npx skills add https://github.com/kristovatlas/claude-sec-skills --skill dynamic-js-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dynamic-js-audit
Source: https://github.com/kristovatlas/claude-sec-skills/tree/main/skills/dynamic-js-audit
Command: npx skills add https://github.com/kristovatlas/claude-sec-skills --skill dynamic-js-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers securely audit dynamically loaded JavaScript in web applications by identifying risky loading patterns, weak configurations, and potential exposure points, enabling targeted mitigations.

Core Features & Use Cases

  • Discovery of dynamic JavaScript loading points (script tags, dynamic import(), inline scripts, and Web Worker usages)
  • Phase-based security assessment covering supply chain, XSS vectors, iframe security, and transport protocols
  • Generated remediation guidance with prioritized patches and non-breaking alternatives for maintainability
  • Use Case: Run against a web app that loads external scripts to surface non-pinned versions, unsafe inline scripts, and risky iframe contexts

Quick Start

Run the dynamic-js-audit skill on your web application repository to identify dynamic JavaScript loads, assess security risks, and produce a structured remediation report.

Frequently Asked Questions about dynamic-js-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit dynamic JavaScript loading for security risks?

To audit dynamic JavaScript loading, this Skill discovers script tags, dynamic imports, and iframes, then assesses supply chain, XSS, and transport security risks to produce a structured remediation report.

What security vulnerabilities are introduced by dynamically loaded scripts and external CDNs?

Dynamically loaded scripts and external CDNs introduce supply chain risks, XSS vectors, and weak transport security. This Skill identifies these exposure points and evaluates your Content Security Policy and Subresource Integrity controls.

How do I check if my web app has non-pinned versions or unsafe inline scripts?

You can check for non-pinned versions and unsafe inline scripts by running this Skill against your web application repository to surface risky dynamic loading patterns and provide prioritized patches.

Does this dynamic script security audit cover iframe contexts and Web Workers?

Yes, this dynamic script security audit covers iframe contexts and Web Worker usages. It assesses iframe security controls alongside script tags and dynamic imports to identify risky loading patterns.

What is the best way to remediate risky iframe contexts and weak script loading configurations?

The best way to remediate risky iframe contexts and weak configurations is by following the generated remediation guidance, which offers prioritized patches and non-breaking alternatives for maintainability.

Can I use this to assess Content Security Policy and Subresource Integrity for dynamically imported modules?

Yes, you can assess Content Security Policy and Subresource Integrity for dynamically imported modules. The Skill evaluates these security controls during its phase-based assessment of your web application.