• MangoCats@feddit.it
    link
    fedilink
    English
    arrow-up
    8
    ·
    4 days ago

    You know what helps? After you’ve coded something that works - whether “vibe coding” or the old fashioned way, review it for security issues. “Vibe code reviews” performed by the same LLM tools that do “vibe coding” can be even more effective at finding issues than traditional methods.

    But, just like real people, if you don’t bother to care about security, you’ll have holes.

      • MangoCats@feddit.it
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 days ago

        It’s a different approach, you don’t abandon best practices, but this new tool does give information that was previously more difficult / costly to access - so use it too.

          • MangoCats@feddit.it
            link
            fedilink
            English
            arrow-up
            2
            ·
            2 days ago

            There are things an LLM can show you that are undeniably correct, like: this line of code here calls a “free” on a pointer which might be NULL, and in-fact will be NULL if you follow this path through the code: …

            Think of it like “NP hard problems” - there are problems where the solution is hard to find, but easy to verify once you are given it.

            When an LLM is giving you those hard to find, easy to veryify observations, that’s value. It doesn’t have to be perfect, it doesn’t have to be 100% complete.

            Or, you can hire a team of engineers to burn their brains for months on end to maybe find the same things, maybe not.

            There’s a problem with both human attention spans, and LLMs’ context window capacity - neither are up to the task of reviewing a full code base for something like a browser and “finding all the flaws” - but, if the LLM can give you flaws that humans haven’t been able to find… you should be taking those wins - before somebody else does and puts them to different uses.

    • KairuByte@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 days ago

      If you (or the LLM) didn’t know enough to prevent the security issue, how exactly are you (or the LLM) going to know to look for it during a review?