Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: J C Lawrence <claw@under.engr.sgi.com>
To: axp-list@redhat.com
Subject: Re: Wanna Buy My Alpha?
Date: Wed, 20 Jan 1999 17:00:49 -0800	[thread overview]
Message-ID: <199901210100.RAA93044@under.engr.sgi.com> (raw)
In-Reply-To: Message from "Designer 7" <designer_7@hotmail.com>  of "Tue, 19 Jan 1999 19:38:27 PST." <19990120033827.1274.qmail@hotmail.com>

On Tue, 19 Jan 1999 19:38:27 PST 
Designer 7<designer_7@hotmail.com> wrote:

> Hmm... I can see that certain hacks being architecture dependant,
> but what does little-endian have to do with it? I mean, I know
> byte ordering is significant in the tcp/ip implementation, but
> AFAIK, Linux/Alpha is little-endian anyway... I don't know about
> Digital Unix though?

I mistyped.  The advantage is because Alpha is (by default)
little-endian and not big endian.  The advantage has nothing to do
with network order, but to do with the expected interpretation of
values by the target OS in designing the exploit script.  To take
advantage of a buffer overrun (overwrite the return pointer and
point it at your own data which you then execute to do whatever),
you have to know the following:

  What does the stack look like on the target machine, and exactly
where on the stack is the return pointer?

  What size are pointers on the target machine (32 or 64 bit)?

  What is the endianness of the target machine?

And then for your jumped-to code that you intend to be executed:

  What is the instruction set of the target machine?

  What is the native word-size of the target machine?

Not all of these points are always required (not all exploits are
stack overflows, and some stack bugs have other weaknesses), however
almost all published exploits depends on at least one of these
requirements, and in particular (for Linux) depends on x86, 32bit
and big endian.

Does this mean that an Alpha running the same buggy code is more
secure than the Intel box?  Yes and no.  The Alpha is subject to the
same exploits, however the pre-canned scripts used by most script
kiddies will fail as they expect x86 etc and the script kiddies
don't know enough about their hacks to know why they fail or to
"fix" them.  Of course an intelligent and educated cracker is still
able to touch up the script to crack the Alpha, but we're dealing
with a far far smaller public there.

> However, without proof, and mere speculation, I would think that
> software ported over from Intel to Alpha are likely to have a
> higher risk of having security holes.

I haven't found this to be the case.

> Although, the fact that more people have Intels than Alphas,
> probably correlates to more security holes being discovered on
> Intel than on Alpha. However, if many experienced hackers/security
> professionals concentrated on finding holes in Alpha systems, I
> would tend to think that they'd find equally as many holes, if not
> more.

Most, not all, holes are generic design or implementation weaknesses 
that aren't particular to the host machine.  Buffer overflows really 
don't care what the base OS or CPU is, they are still buffer
overflows and are _potential_ sources of exploits.  The fact that
the base hardware is x86 in one case and Alpha in another typically
doesn't matter much (very small exceptions).

> I guess my point is, security through obscurity is not a
> philosophy I would go by... at least not these days... when people
> can find bargain deals on systems of most architectures... I got
> my 21164a@500Mhz for $500... cheaper than my most of my Intel
> machines.

Security is an illusion.  There are no absolutely secure machines
that are powered on.  The game is not to make a "secure" machine,
but one that is sufficiently difficult to break into.  The whole
security game is a cost/benefit ratio.

Yes, in any absolute sense security thru obscurity is not a long
term wise tactic.  However, in practice, and over the shorter term,
it *does* work within certain well known boundaries.

My Alpha's are not especially secure machines.  They are *fairly*
secure; I close all the obvious and well known holes as well as a
few others, but I am not about to make supervising the security of
those machines a 24hr a day job.  In the mean time, relying on the
behavioural characterisitics of security thru obscurity as it
pertains to script kiddies and newly found cracks works well.

  eg Exploitable buffer overruns were found in bind/named.  For
various reasons (out of town) I missed the announcements and didn't
upgrade my name servers for about a week.  Friends who run x86 linux
boxen also failed to upgrade, and within 36 hours of the exploit
being published had root compromises on their boxes.  I merely had a
nice big core file and a dead named.

  Yes, technically I was open to the same exploits they were.
However, I merely got a core file and lost name service.  They got
root compromises and had to rebuild their systems.

-- 
J C Lawrence                              Internet: claw@kanga.nu
(Contractor)                             Internet: coder@kanga.nu
---------(*)                    Internet: claw@under.engr.sgi.com
...Honorary Member of Clan McFud -- Teamer's Avenging Monolith...


  parent reply	other threads:[~1999-01-21  1:26 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <designer_7@hotmail.com>
1999-01-19 22:56 ` Wanna Buy My Alpha? Designer 7
1999-01-20  0:49   ` J C Lawrence
1999-01-20  1:14     ` Ron Farrer
1999-01-20 14:01   ` Security (was Re: Wanna Buy My Alpha?) mgraffam
1999-01-20  3:38 ` Wanna Buy My Alpha? Designer 7
1999-01-20  4:32   ` Larry Snyder
1999-01-20  5:23   ` Huw Davies
1999-01-20  5:48     ` Security Through Obscurity J.W. Pennington
1999-01-20 13:26       ` Chris Price
1999-01-20 14:11         ` Noname and 2.2pre8 hangs Pertti Laine
1999-01-20 18:02           ` KDElibs J.W. Pennington
1999-01-21  1:07     ` Wanna Buy My Alpha? J C Lawrence
1999-01-21  1:52       ` Alex Pilosov
1999-01-21  1:00   ` J C Lawrence [this message]
1999-01-21  3:31 Designer 7
1999-01-21  6:43 ` Michal Jaegermann
  -- strict thread matches above, loose matches on Subject: below --
1999-01-21  1:52 Jeff DeMaagd
1999-01-20 11:14 Wessels, Hans
1999-01-20  7:53 Shane Steven Sturrock
     [not found] <jhoward@stljhux.monsanto.com>
1999-01-18 18:32 ` Jim W. Howard
1999-01-18 23:16   ` Ken Hansen
1999-01-19 23:39     ` Brian Guarraci
1999-01-19 22:40   ` J C Lawrence
1999-01-20  2:39     ` Maurice Hilarius
1999-01-20  2:47       ` J C Lawrence
1999-01-21  5:17       ` Barrett G. Lyon
1999-01-21  7:07         ` Maurice Hilarius
1999-01-19 22:54   ` Dave Wiard
1999-01-19 22:56   ` Chris Albertson
1999-01-20  0:08   ` David Monro
1999-01-20  0:13   ` J.W. Pennington
1999-01-20  7:15   ` Ric Tibbetts
1999-01-20  7:21   ` Jochen Kuepper
1999-01-20 11:34   ` mgraffam
1999-01-20 15:39   ` Eric Ding
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox