From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 16043 invoked from network); 21 Jan 1999 01:26:36 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 21 Jan 1999 01:26:36 -0000 Received: from sgi.com (SGI.COM [192.48.153.1]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id UAA04940 for ; Wed, 20 Jan 1999 20:00:48 -0500 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id RAA01151 for <@sgi.engr.sgi.com:axp-list@redhat.com>; Wed, 20 Jan 1999 17:00:51 -0800 (PST) mail_from (claw@under.engr.sgi.com) Received: from under.engr.sgi.com (under.engr.sgi.com [130.62.48.32]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id RAA68929 for <@cthulhu.engr.sgi.com:axp-list@redhat.com>; Wed, 20 Jan 1999 17:00:50 -0800 (PST) mail_from (claw@under.engr.sgi.com) Received: from under.engr.sgi.com (localhost [127.0.0.1]) by under.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id RAA93044 for ; Wed, 20 Jan 1999 17:00:49 -0800 (PST) Message-Id: <199901210100.RAA93044@under.engr.sgi.com> To: axp-list@redhat.com Subject: Re: Wanna Buy My Alpha? In-Reply-To: Message from "Designer 7" of "Tue, 19 Jan 1999 19:38:27 PST." <19990120033827.1274.qmail@hotmail.com> Date: Wed, 20 Jan 1999 17:00:49 -0800 From: J C Lawrence On Tue, 19 Jan 1999 19:38:27 PST Designer 7 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...