Question

Alternate streams - Tripwire

Asked by: chicagoan

Tripwire is reporting an alternate stream added to a few files on one of our 2003 Web Edition machines.
LADS, Streams, Adsscan and Crucialads show nothing.
I know these files have been touched by our people and see no other evidence of intrusion.
Tripwire says they use a proprietary algorithm to detect alternate streams, however they have no ability to determine what the alternate stream is.
Anyone have a clue on how to tease out what Tripwire is reporting on?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2004-11-15 at 05:40:26ID21206978
Tags

alternate

,

tripwire

,

streams

Topics

Miscellaneous Security

,

Operating Systems Network Security

Participating Experts
3
Points
500
Comments
14

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Algorithm
    What is the best algorithm to check a number is in which particular range of: 0 to 9 10 to 99 100 to 999 1000 to 9999 10000 to 99999 ...rate at exponential of 10 E.g X = 555 is in the range of 100 - 999 I use a if-else-then to do the checking but its looks terribly ugly. A...
  2. Algorithms
    I need examples of two algorithms: 1. Pull a value into a variable and swap; ala LittleEndian/BigEndian - example swap joseph to hpesoj; 12345 to 54321, etc. 2. pull in a certain amount of characters at a time then go to the next. Example: you have 100 characters/bytes etc. ...
  3. What is a good algorithm for leaving "secret evidence" th…
    Greetings! I'm writing an application in C++ that I plan to publish and sell commercially within the next six months. Right now, I'm working on the licensing part of it and while I have most of the algorithmic details worked out, the one area in which I can't seem to find a...
  4. VB implementation of TEA (Tiny Encryption Algorithm)
    Does anyone have an implementation of the Tiny Encryption Algorithm in VB? There's lots of implementations in C/C++/Java/Assembler, but nothing in VB! I need a reversable integer hash function that will provide a widely spread but non-colliding output that is reversible. ...
  5. Tiny Encryption Algorithm (TEA) in VB.NET (or ASP.N…
    Tiny Encryption Algorithm - TEA Does anyone have this algorithm implemented in VB.NET? TIA, Glenn

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: ahoffmannPosted on 2004-11-15 at 14:24:14ID: 12588705

are you talking about  Alternate Data Streams (ADS)  something like:
  boot.ini:file.txt
such streams are not visible with standard M$ tools, even you can create them with these

 

by: shahrialPosted on 2004-11-16 at 01:20:57ID: 12591766

Agreed with ahoffmann's last statement in his comment.

One popular method used in Windows Systems is the use of Alternate Data Streams (ADS). A relatively unknown compatibility feature of NTFS, ADS is the ability to fork file data into existing files without affecting their functionality, size, or display to traditional file browsing utilities like dir or Windows Explorer. Found in all version of NTFS, ADS capabilities where originally conceived to allow for compatibility with the Macintosh Hierarchical File System, HFS; where file information is sometimes forked into separate resources. Alternate Data Streams have come to be used legitimately by a variety of programs, including native Windows operating system to store file information such as attributes and temporary storage.

Amazingly enough, Alternate Data Streams are extremely easy to make and require little or no skill on the part of the hacker. Common DOS commands like “type” are used to create an ADS. These commands are used in conjunction with a redirect [>] and colon [:] to fork one file into another.

For instance:  the command

 “type c:\anyfile.exe > c:\winnt\system32\calc.exe:anyfile.exe”

will fork the common windows calculator program with an ADS “anyfile.exe.”

Alarmingly, files with an ADS are almost impossible to detect using native file browsing techniques like command line or windows explorer. In our example, the file size of calc.exe will show as the original size of 90k regardless of the size of the ADS anyfile.exe. The only indication that the file was changed is the modification time stamp, which can be relatively innocuous.

Once injected, the ADS can be executed by using traditional commands like type, or start or be scripted inside typical scripting languages like VB or Perl. When launched, the ADS executable will appear to run as the original file - looking undetectable to process viewers like Windows Task Manager. Using this method, it is not only possible to hide a file, but to also hide the execution of an illegitimate process.

Unfortunately, it is virtually impossible to natively protect your system against ADS hidden files if you use NTFS. The use of Alternate Data Streams is not a feature that can be disabled and currently there is no way to limit this capability against files that the user already has access to.  Freeware programs like lads.exe by Frank Heyne (www.heysoft.de) and crucialADS by CrucialSecurity can be used to manually audit your files for the presence of Alternate Data Streams. Alternatively, the action of moving a file into another file system that doesn’t support ADS will automatically destroy any Alternate Data Streams.  

Ultimately only a third party file checksum application can effectively maintain the integrity of an NTFS partition against unauthorized Alternate Data Streams. Recently dubbed as host based “Intrusion Prevention Systems” or “Intrusion Detection Systems”, third party security applications like eTrust Access Control from Computer Associates have been used for years in high-end government networks to verify the integrity of files used in the most secure environments. In addition to a heightened level of auditing and access control, these applications typically create an MD5 hashed database of file checksums that are used to validate a file’s trustworthiness. File injection techniques like Alternate Data Streams trigger an action by which the file is deemed untrusted and therefore prevented from executing or better yet, prevented from being changed in the first place.

Another good file integrity application is Tripwire for Servers by Tripwire Inc.  Tripwire has been singularly focused on file integrity management since the early 90’s and does a tremendous job of providing stringent security measures against unauthorized file changes.

Hope this helps...;-)

 

by: ahoffmannPosted on 2004-11-16 at 10:24:21ID: 12596613

shahrial, nice explanation ;-)
or in other words: ADS are files (yes they are real files!) not visible to any M$ tools, but fully functional
a sarcastic comment would say that someone (M$ itself?) implemented the perfect backdoor :-))

 

by: chicagoanPosted on 2004-11-16 at 10:38:26ID: 12596741

shahrial, you should quote your sources, or just supply the line

http://www.windowsecurity.com/articles/Alternate_Data_Streams.html

The question is (and was) does anyone know a method other than LADS, Streams, Adsscan or Crucialads to determine what is in the supposed alternate data stream that Tripwire is reporting?
I can copy them out to a fat partition and back to remove the stream, but I'd like to fidure out how the streams hot there in the first place.

 

by: ahoffmannPosted on 2004-11-16 at 10:50:10ID: 12596865

> but I'd like to fidure out how the streams hot there in the first place
you need to check your firewall and/or IDS and/or IPS. Tripwire itself is a static tool (as you already know).
You need a permanent tool for that like winpatrol (just to mention one, if I look at your EE history you probably know much more about that than me;-)

 

by: shahrialPosted on 2004-11-17 at 07:00:09ID: 12604632

Yes, chicagoan (security master). Thank you for your enlightening last statement in your comment.
As for your opening statement...errr...sometimes it's nice to keep the info within EE, (imho only)...:o)

 

by: chicagoanPosted on 2004-11-17 at 14:51:49ID: 12609663

Nothing in IDS, ISAPI filters or the usual suspects. One analyst here is pretty sure he opened one file, I know I opened another (via RDP) , the other 3 were rolled recently via FTP. We're not tracking ACCESS. We're running TW 4.5 on 2003 WEB. I really think this is a Tripwire bug but it's frustrating that their tech support insists an AS is there without having the ability to determine what is there or to say for sure nothing's there.

I'll give this a couple of days and open a support ticket with micro$oft and report the findings back here.

 shahrial> I appreciate the effort. I'm not sure what you mean by "keep the info within EE"...
I've been slapped for failing to cite my sources, I just don't want you to fall into the same quagmire.



 

by: shahrialPosted on 2004-11-17 at 20:24:44ID: 12611368

chicagoan,
"keep the info within EE" = if the link no longer exist, it will still exist within these column.
> I've been slapped for failing to cite my sources, I just don't want you to fall into the same quagmire.
Thanks for the thought. I'm having a 'swollen eye' right now...lol.

Have you checked out this link?
The Dark Side of NTFS (Microsoft’s Scarlet Letter)
http://patriot.net/~carvdawg/docs/dark_side.html

Good luck...;-)

 

by: ahoffmannPosted on 2004-11-17 at 22:13:32ID: 12611937

chicagoan,
lads.exe seems to be a tool for you ...
otherwise I'd simply plug the disk in question to a linux system and check with linux, there're no more secrets then ;-)

 

by: chicagoanPosted on 2004-11-18 at 03:31:49ID: 12613409

1st post: "LADS, Streams, Adsscan and Crucialads show nothing"
I'm not sure how mounting the file system from *nix is going to help here, are you aware of a *nix utility for viewing NTFS ADS?

 

by: ahoffmannPosted on 2004-11-18 at 04:28:07ID: 12613729

dooh, should read *always* *all* texts carefully, sorry.
As I understand ADS, they are just file on the filesystem (probably just inodes, sorry don't know the internals of NTFS), if so mounted with linux's NTFS driver should show them.
But 'cause lads didn't report them anyway, this step seems to be obvious too.
Sounds like you need support from Tripwire ...

 

by: firewallblockedPosted on 2004-11-21 at 11:54:30ID: 12639666

New to ADS I have come accross lads but not the others. I use NTFS Streams Info to check for alternative data streams.

http://www.isgeo.kiev.ua/shareware/products.html


As I have lots to still learn about ADS I would love to know how you think this compares to the other programs out there. It can scan and remove ADS from files but I presume the other programs listed do this and more. :)

 

by: shahrialPosted on 2004-11-22 at 17:05:34ID: 12650680

chicagoan,
Have a look at the new Lavasoft Ad-aware se Professional 1.05. It also have configurable options to scan for ADS...;-)

 

by: chicagoanPosted on 2004-11-27 at 05:44:22ID: 12685921

Still haven't teased these out but think Tripwire is throwing a false positive.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...