The question is simple. I wanted to get a general consensus on if people actually audit the code that they use from FOSS or open source software or apps.

Do you blindly trust the FOSS community? I am trying to get a rough idea here. Sometimes audit the code? Only on mission critical apps? Not at all?

Let’s hear it!

  • vala@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    ·
    7 months ago

    Depends on what you mean by “audit”.

    I look at the GitHub repo.

    • How many stars?
    • Last commit?
    • Open issues
    • Contributer count

    Do I read the whole code base? Of course not. But this is way more than I can do with closed source software.

  • sugar_in_your_tea@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    8
    ·
    7 months ago

    I don’t audit the code, but I do somewhat audit the project. I look at:

    • recent commits
    • variety of contributors
    • engagement in issues and pull requests by maintainers

    I think that catches the worst issues, but it’s far from an audit, which would require digging through the code and looking for code smells.

  • cevn@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    7 months ago

    Of course I do bro, who doesnt have 6 thousand years of spare time every time they run dnf update to go check on 1 million lines of code changed? Amateurs around here…

  • Jhex@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    7 months ago

    some yes, I’m currently using hyde for hyprland and I’ve been tinkering with almost every script that holds the project together

  • Pika@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    7 months ago

    I vet lesser known projects, but yea I do end up just taking credibility for granted for larger projects. I assume that with those projects, the maintainers team with pull access is doing that vetting before they accept a pull.

  • Drunk & Root@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    7 months ago

    depends like for known projecte like curl i wont because i know its fine but if its a new project i heard about i do audit the source and if i dont know the lang its in i ask someone that does

  • r0ertel@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 months ago

    Generally, no. On some cases where I’m extending the code or compiling it for some special case that I have, I will read the code. For example, I modified a web project to use LDAP instead of a local user file. In that case, I had to read the code to understand it. In cases where I’m recompiling the code, my pipeline will run some basic vulnerability scans automatically.

    I would not consider either of these a comprehensive audit, but it’s something.

    Additionally, on any of my server deployments, I have firewall rules which would catch “calls to home”. I’ve seen a few apps calling home, getting blocked but no adverse effects. The only one I can remember is Traefik, which I flipped a config value to not do that.

  • doyun@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 months ago

    Nope! Not at all. I don’t think I could find anything even if I tried. I do generally trust OS more than other apps but I feel like I’m taking a risk either way. If it’s some niche thing I’m building from a git repo I’ll be wary enough to not put my credit card info but that’s about it

  • drspod@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 months ago

    It depends on the provenance of the code and who (if anyone) is downstream.

    A project that’s packaged in multiple distros is more likely to be reliable than a project that only exists on github and provides its own binary builds.

  • non_burglar@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    6 months ago

    Yes, but with an explanation.

    You don’t necessarily need coding skills to “audit”, you can get q sense of the general state of things by simply reading the docs.

    The docs are a good starting point to understand if there will be any issues from weird licensing, whether the author cares enough to keep the project going, etc. Also serious, repeated or chronic issues should be noted in the docs if its something the author cares about.

    And remember, even if you do have a background in the coding language, the project might not be built in a style you like or agree with.

    I’m pretty proficient at bash scripting, and I found the proxmox helper scripts a spaghetti mess of interdependent scripts that were simply a nightmare to follow for any particular install.

    I think the overall message is do your best within your abilities.

  • bizdelnick@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    7 months ago

    Full code audit is very time consuming. It’s impossible to audit all software someone uses. However if I know nothing about project, I do a short look at the code to understand if it follows best practices or not and make some assumptions about the code quality. The problem is that I can’t do this if I’m unfamiliar with the programming language the project is written in, so in most cases I try to avoid such projects.

  • Plebcouncilman@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    7 months ago

    I don’t know enough about programming to do it myself so I like to look at what the community says. This is one thing we’re AI could be very helpful no?

  • MTK@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    7 months ago

    About as much as I trust other drivers on the road.

    As in I give it the benefit of the doubt but if something seems off I take precautions while monitoring and if it seems dangerous I do my best to avoid it.

    In reality it means that I rarely check it but if anything seems off I remove it and if I have the time and energy I further check the actual code.

    My general approach is minimalism, so I don’t use that many unknown/small projects to begin with.

  • irmadlad@lemmy.worldB
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    7 months ago

    I do not audit code line by line, bit by bit. However, I do due diligence in making sure that the code is from reputable sources, see what other users report, I’ll do a search for any unresolved issues et al. I can code on a very basic level, but I do not possess the intelligence to audit a particular app’s code. Beyond my ‘due diligence’ I rely on the generosity of others who are more intelligent than I and who can spot problems. I have a lot of respect and admiration for dev teams. They produce software that is useful, fun, engaging, and it just works.