Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #409766

Re: OT: Virus infection mechanisms

From Don Y <blockedofcourse@foo.invalid>
Newsgroups sci.electronics.design
Subject Re: OT: Virus infection mechanisms
Date 2016-04-28 22:31 -0700
Organization A noiseless patient Spider
Message-ID <nfurcp$3e6$1@dont-email.me> (permalink)
References <nftbc8$8l6$1@dont-email.me> <nftgee$scr$1@dont-email.me>

Show all headers | View raw


On 4/28/2016 10:17 AM, Teodor V. wrote:
> I don't have pointers to litterature, but I know that some antivirus
> software generates hashes (MD5, SHA-1 and others) from known instances
> of malware.

Yes, but surely (?) not of the entire file?  I.e., they'd have to store
the hash of foo.exe infected with malware1, foo.exe infected with malware2,
foo.exe infected with malware3... bar.dll infected with malware1, ...

And, would they then treat each such datapoint as a tuple:
    (filename, infection, hash)
Would altering filename then complicate detection by breaking the typle?
Or, just a bunch of (infection, hash) typles expecting the hash space to
be sparse, even in the face of countless possible filenames?

So, prepending "This is not an executable" to a file (making it so it
wouldn't be loadable) would alter the hash of the file -- just as
"Here's something else I want to try" would?  (i.e., chances are, they've
never encountered foo.exe thusly modified!)

> Not only from the file itself, but from parts from the file, like
> segments for executables, and files contained in executables.

So, they have to understand the structure of the file containing the potential
payload -- enough to be able to isolate the "active" part.

A payload in a JPG (that targets a flaw in some particular image viewer)
would be different than in an EXE, etc.?

> Another method used is heuristic scanning, like if you make a HTML file
> which reads https://paypal.com/ up front in a hyperlink, but links you
> to http://paypal.really.fishy.domain/, it will cause a trap or at least
> warning.

Yes, by watching how it behaves when "activated".

> A third method is to look for intentionally misspelled words, like you
> remember how the sildenafil spam used v14gra et al permutations to get
> past spam filters (which basically are a niche application of the same
> technology that is used to scan for malware).
>
> A virus database basically is a collection of signatures (either MD5,
> SHA-1 et al as well as scripted heuristics for known instances of
> malware which encrypts itself), signed with strong encryption so the
> software is less likely to be tricked to recognize a legit program as a
> threat.

<frown>  None of this tells me how to isolate a payload in a particular
file and defeat it (excise that code stanza, replace it with NoOps, etc.)

And, presumably, AV products don't remoe the threat; they remove the
carrier!

> As to litteature, come to think of it, I think I remember reading some
> of this in a document regarding the ClamAV scanning engine, so that
> would be a good starting point for your Google-Fu practice :3

Thanks, I'll have a look.

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

OT: Virus infection mechanisms Don Y <blockedofcourse@foo.invalid> - 2016-04-28 08:51 -0700
  Re: OT: Virus infection mechanisms "Teodor V." <teodor-see-signature@invalid.invalid> - 2016-04-28 19:17 +0200
    Re: OT: Virus infection mechanisms Don Y <blockedofcourse@foo.invalid> - 2016-04-28 22:31 -0700
  Re: OT: Virus infection mechanisms Clifford Heath <no.spam@please.net> - 2016-04-29 07:29 +1000
    Re: OT: Virus infection mechanisms Don Y <blockedofcourse@foo.invalid> - 2016-04-28 22:33 -0700
      Re: OT: Virus infection mechanisms Clifford Heath <no.spam@please.net> - 2016-04-29 16:43 +1000
        Re: OT: Virus infection mechanisms Don Y <blockedofcourse@foo.invalid> - 2016-04-29 01:48 -0700
          Re: OT: Virus infection mechanisms Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2016-04-29 12:36 +0200
            Re: OT: Virus infection mechanisms Don Y <blockedofcourse@foo.invalid> - 2016-05-01 10:12 -0700
              Re: OT: Virus infection mechanisms Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2016-05-02 04:38 +0200
                Re: OT: Virus infection mechanisms Don Y <blockedofcourse@foo.invalid> - 2016-05-01 20:04 -0700
                Re: OT: Virus infection mechanisms Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2016-05-02 17:59 +0200
                Re: OT: Virus infection mechanisms Don Y <blockedofcourse@foo.invalid> - 2016-05-02 11:59 -0700
          Re: OT: Virus infection mechanisms Nobody <nobody@nowhere.invalid> - 2016-05-01 04:53 +0100
    Re: OT: Virus infection mechanisms jurb6006@gmail.com - 2016-04-29 05:11 -0700
      Re: OT: Virus infection mechanisms Don Y <blockedofcourse@foo.invalid> - 2016-04-29 19:56 -0700
      Re: OT: Virus infection mechanisms rickman <gnuarm@gmail.com> - 2016-05-01 00:29 -0400

csiph-web