• slazer2au@lemmy.world
    link
    fedilink
    English
    arrow-up
    177
    ·
    5 months ago

    Use EICAR test strings as passwords so when the password is stored as plain text the antivirus software will delete the file.

      • slazer2au@lemmy.world
        link
        fedilink
        English
        arrow-up
        48
        ·
        5 months ago

        Doesn’t have to be a binary file, toss the string in a txt file and the AV still throws a fit.

      • NatakuNox@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        5 months ago

        01001000 01100101 01101100 01101100 01101111 00101100 00100000 01110100 01101000 01101001 01110011 00100000 01101001 01110011 00100000 01101110 01101111 01110100 00100000 01100001 00100000 01110011 01110100 01110010 01101001 01101110 01100111 00100000 01101111 01100110 00100000 01100010 01101001 01101110 01100001 01110010 01111001 00100000 01110100 01101000 01100001 01110100 00100000 01110100 01101111 01110100 01100001 01101100 01101100 01111001 00100000 01110111 01101111 01101110 00100111 01110100 00100000 01101001 01101110 01100110 01100101 01100011 01110100 00100000 01111001 01101111 01110101 01110010 00100000 01110000 01101000 01101111 01101110 01100101 00100000 01101111 01110010 00100000 01100011 01101111 01101101 01110000 01110101 01110100 01100101 01110010 00100000 01110111 01101001 01110100 01101000 00100000 01100110 01110101 01110010 01110010 01111001 00100000 01110000 01101111 01110010 01101110 00101110 00100000 01010100 01101000 01100001 01110100 00100000 01101001 01110011 00100000 01100001 01101100 01101100 00101110 00101110 00101110 00100000 01000100 01101111 01101110 00100111 01110100 00100000 01100011 01101000 01100101 01100011 01101011 00100000 01101001 01101110 01110100 01100101 01110010 01101110 01100001 01101100 00100000 01110011 01110100 01101111 01110010 01100001 01100111 01100101 00101110 00100000 01010100 01101000 01100001 01101110 01101011 00100000 01111001 01101111 01110101 00100000 01111000 01101111 01111000 01101111

    • henfredemars@infosec.pub
      link
      fedilink
      English
      arrow-up
      20
      ·
      5 months ago

      Unfortunately there is significant overlap between plain-text-password-servers and servers that can’t be bothered to use antivirus. Also, the string may not work if it’s not at the start of the file. AV often doesn’t process the whole file for efficiency purposes.

      • B-TR3E@feddit.org
        link
        fedilink
        arrow-up
        40
        ·
        5 months ago

        It’s not about the password on the server where you want to log in, it’s about CSV files stored on the machine of the cybercrook who wants to use the passwords to steal people’s identities.

    • Orygin@sh.itjust.works
      link
      fedilink
      arrow-up
      10
      ·
      5 months ago

      Sadly it wouldn’t work if found in a CSV file with other records:

      According to EICAR’s specification the antivirus detects the test file only if it starts with the 68-byte test string and is not more than 128 bytes long. As a result, antiviruses are not expected to raise an alarm on some other document containing the test string

    • Saganaki@lemmy.zip
      link
      fedilink
      arrow-up
      8
      ·
      5 months ago

      unfortunately, nearly all AV abides by the “cannot be larger than 68 bytes” rule

    • Lucy :3@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      5 months ago

      According to EICAR’s specification the antivirus detects the test file only if it starts with the 68-byte test string and is not more than 128 bytes long.

      Unless you’re the only one in the dump, no :c

  • JeeBaiChow@lemmy.world
    link
    fedilink
    arrow-up
    73
    ·
    5 months ago

    Interesting… I wrote a gag comment about using an SQL injection as my password and crashed the Lemmy API. Using connect if that makes any difference.

  • sylver_dragon@lemmy.world
    link
    fedilink
    English
    arrow-up
    42
    arrow-down
    1
    ·
    5 months ago

    Sadly, no. CSV files can deal with embedded commas via quoting or escaping. Given that most of the dumps are going to be put together and consumed via common libraries (e.g.python’s csv module), that’s all going to happen automagically.

    • nymnympseudonym@piefed.social
      link
      fedilink
      English
      arrow-up
      18
      ·
      5 months ago

      Can be != will be

      You’re looping over 50M records, extracting into your csv. Did you bother using the appropriate library, or did your little perl script just do split(/,/,$line)

      • ilinamorato@lemmy.world
        link
        fedilink
        arrow-up
        11
        ·
        5 months ago

        Everything you can use for a password can be escaped out of a csv. Partially because csvs have to be interoperable with databases for a bunch of different reasons, and databases are where your passwords are stored (though ideally not in plaintext). There’s no way that I can think of to poison your password for a data breach that wouldn’t also poison the password database for the service you’re trying to log into.

        • bassomitron@lemmy.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          5 months ago

          Gotcha, that’s what I was thinking as well. I haven’t done any software development in a long time (I have a degree in it, but professional career sent me down another path in tech), so my memory on input sanitization is very rusty. Thanks for the response!

    • 𝕛𝕨𝕞-𝕕𝕖𝕧@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      4
      ·
      5 months ago

      yeah unless you’re dealing with some steaming pile of vibe-coded shit this is a dumb as fuck idea.

      (have seen people who don’t know how to appropriately use an LLM just let it wholly reimplement standards, read it over, and then say “oh wow that works great!” smh…)

  • samus12345@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    6
    ·
    5 months ago

    Why did the creator add an incorrect apostrophe in “commas,” but not “passwords?” At least be consistent!