<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ricardo jose</title>
    <description>The latest articles on DEV Community by Ricardo jose (@ricardo_jose_5fca0359ddff).</description>
    <link>https://dev.to/ricardo_jose_5fca0359ddff</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4278772%2F9b93fdad-68f6-4980-82c4-fe0bd5e12f6d.jpg</url>
      <title>DEV Community: Ricardo jose</title>
      <link>https://dev.to/ricardo_jose_5fca0359ddff</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ricardo_jose_5fca0359ddff"/>
    <language>en</language>
    <item>
      <title>Your npm install Runs Code You Never Reviewed: How to Protect Your Projects in 2026</title>
      <dc:creator>Ricardo jose</dc:creator>
      <pubDate>Wed, 02 Dec 2026 15:17:41 +0000</pubDate>
      <link>https://dev.to/ricardo_jose_5fca0359ddff/your-npm-install-runs-code-you-never-reviewed-how-to-protect-your-projects-in-2026-24ka</link>
      <guid>https://dev.to/ricardo_jose_5fca0359ddff/your-npm-install-runs-code-you-never-reviewed-how-to-protect-your-projects-in-2026-24ka</guid>
      <description>&lt;h2&gt;
  
  
  Why npm Supply Chain Attacks Are Surging
&lt;/h2&gt;

&lt;p&gt;Every time you run npm install, you're trusting thousands of strangers you've never met. Most of the time, that trust holds. In 2026, it has been tested hard.&lt;/p&gt;

&lt;p&gt;The Numbers Behind the Trend&lt;/p&gt;

&lt;p&gt;Researchers tracked campaigns that hit 497 packages in the first half of 2026 alone, compared with 111 packages across all of 2025. The targets are not obscure. In March, attackers compromised Axios, a package with about 100 million downloads, which showed how far one poisoned release can travel.&lt;/p&gt;

&lt;h2&gt;
  
  
  How These Attacks Actually Work
&lt;/h2&gt;

&lt;p&gt;Many run during installation through lifecycle scripts such as preinstall, before your application code ever starts. That's why scanning your own source code can miss them entirely. Some campaigns have gone further. Mini Shai-Hulud behaved like a self-propagating worm across npm and PyPI, potentially affecting more than 1,800 developers.&lt;/p&gt;

&lt;p&gt;The lesson is blunt: attackers are going after the people and workflows already trusted to publish, not only the code itself. A single stolen maintainer token can push malicious versions to every project that depends on the package.&lt;/p&gt;

&lt;h2&gt;
  
  
  Defenses You Can Apply Today
&lt;/h2&gt;

&lt;p&gt;The npm team is starting to respond. npm 12 disables install scripts by default, which closes one of the most common attack paths. Until you upgrade, you can take control yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lock Down Your Installs
&lt;/h2&gt;

&lt;p&gt;Commit your lockfile and use npm ci in CI so every build installs exactly the versions you reviewed. Turn off lifecycle scripts for installs that don't need them with --ignore-scripts, and allow scripts only for packages you have vetted.&lt;/p&gt;

&lt;h2&gt;
  
  
  Harden Your Publishing and CI Pipeline
&lt;/h2&gt;

&lt;p&gt;Enable two-factor authentication for every maintainer account, and scope publishing tokens to the minimum they need and rotate them regularly. In GitHub Actions, pin third-party actions to full commit SHAs rather than mutable tags, since a moved tag can quietly change what runs in your pipeline.&lt;/p&gt;

&lt;p&gt;Treat Every Dependency Like Code You Run&lt;/p&gt;

&lt;p&gt;Supply chain security is not a one-time checklist. It's a habit of treating every dependency as code that runs with your permissions. Whether you maintain a popular library or just ship a side project, the same principles apply. I put together a practical guide that walks through these defenses step by step, so you can tighten your pipeline before the next incident hits.&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://tr.ee/o2Btnw" rel="noopener noreferrer"&gt;Read the full guide here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Have you been hit by a compromised dependency? Share what you learned in the comments. It could save someone else's build.&lt;/p&gt;

</description>
      <category>python</category>
      <category>tutorial</category>
      <category>devops</category>
      <category>opensource</category>
    </item>
    <item>
      <title>AI Coding Agents Are Moving Beyond Autocomplete: How to Use Them Well in 2026</title>
      <dc:creator>Ricardo jose</dc:creator>
      <pubDate>Wed, 02 Dec 2026 15:06:43 +0000</pubDate>
      <link>https://dev.to/ricardo_jose_5fca0359ddff/ai-coding-agents-are-moving-beyond-autocomplete-how-to-use-them-well-in-2026-43m9</link>
      <guid>https://dev.to/ricardo_jose_5fca0359ddff/ai-coding-agents-are-moving-beyond-autocomplete-how-to-use-them-well-in-2026-43m9</guid>
      <description>&lt;p&gt;For a while, AI coding tools were essentially fancy autocomplete: you started a line, and the tool guessed the rest. That era is ending. Today's coding agents read your repository, plan changes across several files, run your test suite, and keep iterating until the failures go away. Some can even open a pull request on their own. Developers who treat them as a new kind of teammate are getting real leverage. Those who treat them as a faster keyboard tend to get faster bugs.&lt;/p&gt;

&lt;p&gt;The bottleneck has moved. Typing speed is no longer what limits you. Three skills matter more now: writing a clear specification, breaking work into small and verifiable steps, and reviewing diffs with a critical eye. An agent can produce hundreds of lines in a minute, which means the review step is where your judgment earns its keep.&lt;/p&gt;

&lt;p&gt;Types are becoming part of that safety net. Strong typing catches many of the mistakes agents make before the code ever runs. GitHub has noted that typed languages matter for AI-assisted coding for exactly this reason, and it's one of the forces behind TypeScript's rise. If your project is still loosely typed, adding types may be the highest-leverage change you make this year.&lt;/p&gt;

&lt;p&gt;A few habits make a real difference. Give the agent a concrete goal and the constraints it must respect, such as your framework version, naming conventions, and style guide. Keep each task small enough that the resulting diff fits in your head. Require the agent to run your tests and linters before it reports success, and never merge code you couldn't explain to a teammate. Finally, be deliberate about access: keep secrets out of prompts and grant only the permissions the task actually needs.&lt;/p&gt;

&lt;p&gt;None of this is hard, but it's easy to skip when a tool feels magical. Whether you're just starting out or you've been shipping for years, the fundamentals are the same: clear intent, small steps, and strict review. I put together a complete guide that walks through these patterns step by step, so you can adopt agents without losing control of your codebase.&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://tr.ee/o2Btnw" rel="noopener noreferrer"&gt;Read the full guide here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you already use agents every day, I'd love to hear which workflow has worked best for you. Drop it in the comments.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>productivity</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
