And let me give you an example. So I have a client, and I was working with AI to change, let's say, how the backend communicates with frontend. And we changed the API URL, and also the credentials to be able to use this backend. And I provide information to AI, like context itself, what is the backend, how we can connect and et cetera. And what I saw is rather than update the dot NV file, it's created directly the variable, it was const. So directly, it was put the secret in the code itself, which is making my application really exposed to the world. And please, never commit dot NV files, never trust AI blindly, and also the secrets should stay in specific places. For that reason, many, let's say, hosting providers, they specify specific place for the secrets. Your code is basically code, but never should include any kind of secrets or environment variables.
And the last one, it's also very, very good, and that is dependency and supply chain blindness. So, I saw one application, it was ReactJS application. So this ReactJS application, it was old, like one year and a half, and no one touched it. And of course, we decide to use AI to update our application to a new version of ReactJS, and also to update everything related to the changes in this version. What is happening is that React, it was really old, it was like, I think, 16.8, and it was not updated, so AI itself tried to update to new versions. But what is happening is that AI update to specific version, which one week before, React World and also Next.js and many people share around the world that this specific version, it is compromised, and we should update to the latest patch. Unfortunately, AI don't do that, but directly install the compromised version of ReactJS. And this is just a small example. Also, when I saw like example is that when AI update the NPM packages, also added some packages which I don't want, and later on, don't do like check, for example, NPM audit, but what is happening is just tell me, okay, it's done. Everything is working fine. The build is good. Everything is fine. But in simple audit check, I found like 10 or 20. I don't remember exactly, but it was a lot of security vulnerabilities just because, again, I blindly trust AI.
So many people ask me what they can use, like information to be secure and also stay up to date. This is my preferences. Of course, I highly advise you to check them, explore the internet. We have a lot of information about security, but what I trust is really CVA organization, which is website including all of the security vulnerabilities in this website and also give them specific identifier or ID, which later on can be used to reference the vulnerability to see also how serious is this vulnerability. For example, this was the place where our React community and React itself mentioned that they have vulnerability in server components. They provide the ID and this vulnerability, it was in the maximum possible range and it was high. So for that reason, everyone in the world using React understand that they have something in React which is compromised, and for that reason, we should update the budgets.
Comments