Knowledge about Web

I will share the knowledge or information about the web and developing the web service.

Blocking CDN Tampering with Subresource Integrity (SRI): Lessons from Polyfill.io

2026-05-22
The 2024 Polyfill.io incident showed how a single CDN-hosted script can infect over 100,000 sites at once. This article covers how Subresource Integrity (SRI) works, how to apply it, and how to handle dynamic CSS like Google Fonts where SRI cannot be used directly.
자세히 보기 →

Validating New Dependencies at the PR Stage with GitHub Dependency Review Action

2026-05-21
How to use GitHub's dependency-review-action to prevent PRs from introducing packages with known CVEs, license violations, or risky maintainer changes — with real incident examples.
자세히 보기 →

Strengthening Security Scanning with CodeQL and yarn npm audit

2026-05-20
Two threats that supply chain cooldown alone cannot stop — newly discovered CVEs in already-installed dependencies, and vulnerabilities in your own code — and how to address them with yarn npm audit and GitHub CodeQL, illustrated with real incident examples.
자세히 보기 →

Gaining Dependency Visibility with SBOM: Lessons from Log4Shell

2026-05-19
If your team cannot immediately answer "are we affected?" when a new vulnerability is disclosed, your dependency visibility is insufficient. Using Log4Shell as a case study, this article explains why SBOM (Software Bill of Materials) matters and how to automate it with GitHub Dependency Submission.
자세히 보기 →

Blocking Lockfile Tampering Attacks with Yarn 4 Hardened Mode

2026-05-18
Covers lockfile tampering — a gap in supply chain defenses — and explains how Yarn 4's Hardened Mode closes it by verifying resolutions and integrity hashes on every install. Includes how to enable it with a single line of configuration.
자세히 보기 →

The Effectiveness and Limits of Cooldown as a Supply Chain Defense

2026-05-17
A data-driven evaluation of how effective time-based supply chain defenses — Dependabot cooldown and package manager minimum release age — actually are, using historical incident data.
자세히 보기 →

3 Defense Strategies Against npm Supply Chain Attacks

2026-05-16
Three concrete strategies for defending against npm supply chain attacks. Covers GitHub Actions SHA pinning, Dependabot cooldown, and Yarn 4's npmMinimalAgeGate — step by step, with code.
자세히 보기 →

How npm Supply Chain Attacks Work: The axios Case Study

2026-05-15
An analysis of the axios supply chain attack that hit the npm ecosystem in March 2026. Covers the full attack chain — maintainer account hijack, malicious dependency injection, and RAT deployment via a postinstall script — along with the structural weaknesses in npm's trust model.
자세히 보기 →

word-break: break-word is Deprecated — Why You Should Switch to overflow-wrap: anywhere

2026-03-18
word-break: break-word is a deprecated legacy value in the CSS spec. Its alternative, overflow-wrap: break-word, also has a pitfall where it fails on intrinsic sizing elements. Learn the recommended CSS combination (overflow-wrap: anywhere + word-break: normal + line-break: strict) and how to automate enforcement with a Stylelint custom plugin.
자세히 보기 →

[Optimization] Reducing Bundle Size by 82% with lodash Tree Shaking: From 547KB to 97KB

2026-02-28
Sharing the experience of reducing bundle size from 547KB to 97KB (approximately 82%) by changing the lodash import method in a monorepo environment. Covers the entire process from setting up bundle analysis to preventing recurrence with ESLint rules.
자세히 보기 →

[Web] Comprehensive Lighthouse Performance Optimization Guide

2026-02-14
Sharing the methods applied to improve Lighthouse performance scores on an Astro blog, including image optimization, CSS optimization, web font optimization, and accessibility improvements.
자세히 보기 →

[Web] Optimize Images Using avif and webp Formats

2023-03-18
Let's learn how to solve Lighthouse's Serve images in next-gen formats issue by generating images in avif and webp formats using Python.
자세히 보기 →

SHARE
Twitter Facebook RSS