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


Groups > sci.electronics.design > #409776

Re: OT: Virus infection mechanisms

From Don Y <blockedofcourse@foo.invalid>
Newsgroups sci.electronics.design
Subject Re: OT: Virus infection mechanisms
Date 2016-04-29 01:48 -0700
Organization A noiseless patient Spider
Message-ID <nfv6v0$6f6$1@dont-email.me> (permalink)
References <nftbc8$8l6$1@dont-email.me> <5722923a$0$44338$c3e8da3$aae71a0a@news.astraweb.com> <nfurhf$3e6$2@dont-email.me> <57231407$0$46649$c3e8da3$e074e489@news.astraweb.com>

Show all headers | View raw


On 4/28/2016 11:43 PM, Clifford Heath wrote:
> On 29/04/16 15:33, Don Y wrote:
>> On 4/28/2016 2:29 PM, Clifford Heath wrote:
>>> On 29/04/16 01:51, Don Y wrote:
>>>> I suspect antivirus tools just check for "characteristic signatures"
>>> You aren't going to find the truth about what commercial virus scanners
>>> actually do. It's their most highly confidential and valuable trade
>>> secrets, and is extremely well-defended.
>> I'm not interested in how AV scanners work -- except as a tutorial on
>> how *I* can locate a payload in a particular file.
>
> There is a number of effective techniques for efficiently scanning for
> any of many given bitstrings (of extended lengths), at any offset in a
> suspect file. One that I'm aware of uses a "rolling checksum" like an
> Adler32; one such checksum for each target bitstring length. So for
> fast scanning, normally the dictionary would be normalized to just one
> or two lengths, and when the rolling checksum fires (by a match in a
> hash table), the full bitstring gets checked at this location.

Again, that only tells me how to locate a specific *signature* in a file.
It doesn't tell me how to find the likely location of an infection in a
file and excise the infection from the file (e.g., with a hex editor).

It's easy to see how malware can *deliver* a payload to a system.  But,
if you assume a virus wants to replicate, then it needs a way of attaching
itself to "suitable files" (most obviously executables) in such a way that
the virus doesn't need to understand much about what the file is doing.

For example, prepending itself to an executable so that control transfers
to the malicious code *first*, allowing it to "do whatever"; then chaining
to the original "appended" executable so the user is unaware that anything
unexpected has just happened.

It would, I imagine, be difficult to insert malware at a "random" location
in an executable -- though could imagine "enough smarts" allowing it to
locate startup code and install itself in some portion of the image KNOWING
PARTICULARS ABOUT THE TYPICAL IMAGE FORMAT for that platform.

(I suspect simpler is the safer approach -- for most malware.  Too much
bloat makes an executable "suspicious")

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