← Back to Reading
ExplainThis 2026-11-15

ExplainThis 全端開發雙週報 #91 AI 時代該具備的資安預防意識

Recent cybersecurity vulnerabilities in mainstream environments like PHP and Node.js highlight growing security challenges in software development. As AI capabilities advance, individual hackers can now coordinate numerous AI agents to discover vulnerabilities at an unprecedented scale and speed. While proprietary models such as GPT and Claude implement strict safety alignment to refuse harmful tasks, open-weight models often lack comparable safeguards, potentially lowering the barrier for cyberattacks. In response, a three-part article series will address personal prevention, incident response, and team-level security practices for software engineers. Recent cybersecurity incidents highlight the need for proactive security measures from software engineers. Engineers have numerous opportunities to incorporate better security practices into both personal projects and workplace environments. Even if their current organizations have not established such habits, engineers are encouraged to take the initiative and advocate for positive change. This section introduces an upcoming series of security practices that engineers can adopt in their daily routines. Recent major software security incidents increasingly target upstream software supply chains by injecting malicious code directly into newly released versions or overwriting existing release tags. In response, modern security practices emphasize dependency version locking paired with update cooldown periods to avoid immediately pulling unvetted malicious releases. Utilizing package lockfiles helps maintain commit integrity hashes, safeguarding applications against unauthorized tampering and unexpected code alterations.

Read the original ↗
Contents 6 sections
  1. 01AI 時代該具備的資安預防意識
  2. 02工程師平常可以養成哪些安全習慣?
  3. 03依賴套件版本鎖定
  4. 04減少第三方依賴,必要時自行維護
  5. 05閱讀更多
  6. 06本期推薦

AI 時代該具備的資安預防意識

Recent cybersecurity vulnerabilities in mainstream environments like PHP and Node.js highlight growing security challenges in software development. As AI capabilities advance, individual hackers can now coordinate numerous AI agents to discover vulnerabilities at an unprecedented scale and speed. While proprietary models such as GPT and Claude implement strict safety alignment to refuse harmful tasks, open-weight models often lack comparable safeguards, potentially lowering the barrier for cyberattacks. In response, a three-part article series will address personal prevention, incident response, and team-level security practices for software engineers.

  • Critical software environments and languages including PHP and Node.js have recently faced severe security vulnerability disclosures.
  • AI enables single attackers to scale vulnerability discovery by orchestrating tens or hundreds of AI agents simultaneously.
  • Proprietary models like GPT and Claude invest heavily in safety alignment to decline malicious security-attack requests.
  • Open-weight models often lack equivalent safety alignment, lowering the barrier for attackers to leverage powerful AI for exploits.
  • A three-part security series is planned to cover proactive personal defenses, incident mitigation, and team-wide security processes.

工程師平常可以養成哪些安全習慣?

Recent cybersecurity incidents highlight the need for proactive security measures from software engineers. Engineers have numerous opportunities to incorporate better security practices into both personal projects and workplace environments. Even if their current organizations have not established such habits, engineers are encouraged to take the initiative and advocate for positive change. This section introduces an upcoming series of security practices that engineers can adopt in their daily routines.

  • Recent cybersecurity incidents underscore the vital role software engineers play in maintaining digital security.
  • Engineers can implement better security habits in personal projects as well as professional environments.
  • Software engineers can act as proactive champions of security improvements if their organizations have not yet implemented robust practices.

依賴套件版本鎖定

Recent major software security incidents increasingly target upstream software supply chains by injecting malicious code directly into newly released versions or overwriting existing release tags. In response, modern security practices emphasize dependency version locking paired with update cooldown periods to avoid immediately pulling unvetted malicious releases. Utilizing package lockfiles helps maintain commit integrity hashes, safeguarding applications against unauthorized tampering and unexpected code alterations.

  • Upstream supply chain attacks now frequently compromise maintainer accounts to publish malicious new releases rather than exploiting old vulnerabilities.
  • Attackers have also targeted existing releases by altering Git tags to overwrite existing versions, as seen in the PHP Laravel-Lang supply chain incident.
  • Developers should adopt dependency version locking and enforce a cooldown period before updating packages, with GitHub implementing a 3-day cooldown for Dependabot and Google Cloud recommending 7 days.
  • Using lockfiles alongside version locking prevents package managers like Composer from fetching replaced code by verifying Git commit integrity hashes.

減少第三方依賴,必要時自行維護

In contrast to continuously relying on third-party dependencies, open-source engineer Mitchell Hashimoto advocates forking dependencies to maintain them internally. Under this approach, teams strip out unneeded functionality, regain control over their software supply chain, and only pull specific required code changes to minimize vulnerability exposure. While previously criticized as impractical due to high maintenance costs, the strategy is gaining traction. The advent of AI agents assisting in development has significantly lowered the cost of maintaining custom dependency forks.

  • Mitchell Hashimoto advocates forking third-party dependencies and maintaining them internally rather than relying on direct upstream packages.
  • Teams following this philosophy remove unnecessary features and refrain from updating dependencies unless users are directly impacted or specific changes are identified.
  • The approach aims to reclaim control over the software supply chain and reduce exposure to security vulnerabilities.
  • Historically, maintaining internal forks was considered cost-prohibitive and impractical for complex libraries.
  • The rise of AI agents assisting in code implementation has lowered the maintenance overhead, encouraging more teams to adopt internal forks.

閱讀更多

The section notes that additional strategies exist for both prevention and response beyond what was previously discussed. Comprehensive coverage, including interactive diagrams, is available exclusively through the ExplainThis E+ membership program. Readers are invited to join the membership tier to access the full analysis and resources.

  • Further actions regarding prevention and mitigation remain beyond the highlighted points.
  • Full interactive diagrams and detailed content are provided in the E+ membership tier.
  • ExplainThis hosts the extended content behind its E+ subscription program.

本期推薦

This edition highlights several development tools and AI engineering case studies, including UI SDK designed for AI agents and Pele, a lightweight Mermaid chart renderer. It also covers technical insights from the GitHub Next team on speculative design and X's engineering blog about rebuilding X.com with five engineers and AI agents in under six months. Furthermore, it introduces Inkling 2 Small by Thinking Machines Lab for long-horizon agentic coding and Handwired, an experimental project that converts JavaScript logic into neural networks without training.

  • UI SDK is a UI library built specifically for AI agents, offering over 50 composable interaction behaviors across frameworks like React, Vue, Svelte, and Solid.
  • GitHub Next shared a speculative design methodology for exploring the future evolution of software products in the AI era.
  • X engineering rebuilt X.com in less than six months using five engineers and AI agents, reducing profile post load time on slow networks from over 22 seconds to 2.7 seconds.
  • Pele is an open-source Mermaid rendering library that compiles to SVG, featuring a bundle size one-sixth of Mermaid.js and rendering speeds up to 500x faster.
  • Thinking Machines Lab released Inkling 2 Small, an open-weights model trained with reinforcement learning for autonomous multi-step software engineering tasks.
  • Handwired is an experimental project that transforms standard JavaScript code directly into differentiable neural networks without initial training.