Showing posts with label Windows Server. Show all posts
Showing posts with label Windows Server. Show all posts

Friday, June 7, 2013

Why I’m Afraid For You

Okay, I just got back from my first day at the Ethical Hacker class. First, let me give you a background from where I come from.

See, my very first formal IT class was for Security+. And, like many other industries, the first class you take tends to color everything you do in that field. As an example, my first martial arts school was Taekwondo, so I tend to use more kicking than, say, a karateka. So when we deal with networking, I tend to think more on how to secure them, rather than implement or fix them.

So, I’m already scared of networks and the Internet. Of course, it’s necessary to use in today’s world as an IT technician, but a certain amount of trepidation accompanies what I do at work. Keep that in mind:  a small amount of trepidation.

Today’s class was quick, and spent more on legality of ethical hacking. We spent about 15 minutes of just looking at publicly accessible items, breaking no laws, and not even TOUCHING our target site. With about five minutes, we had:

  • The webmaster’s name
  • His work phone
  • His personal mobile phone
  • His direct employer (hint: he does NOT work directly for the company)
  • How long he’s been in that position
  • What type of server the website is hosted on
  • What types of technologies were used in the website (like javascript, Java, active server pages, etc.)

Okay, it took all of about half an hour to show us this. That’s half an hour WITH explanations and questions. That means all this information could be found within less than five minutes – and the attacker would never even be detectable at this stage by the target. And would not have broken any laws at all within that period.

So keep this in mind when the world starts talking about protecting your GMail with two-factor authentication, or when your IT department requires larger and more complex passwords.

Monday, December 17, 2012

Why all the big hubub about passwords?

1/5/12 - 45,000 Facebook passwords compromised
2/13/12 - Millions of passwords compromised from Microsoft India's site
6/6/12 - Six million passwords were stolen from LinkedIn website, compromising these users.
6/6/12 - 1.5 million passwords were compromised of dating site, eHarmony
11/14/12 - Millions of Skype passwords compromised
11/21/12 - One password stolen, causing the state of South Carolina to "lose" tax details for over 700,000 businesses statewide
5/12/12 - Stolen password allows a compromise of 1.1 Million users' data with Nationwide Insurance
And Experian has apparently had 80+ known security breaches of passwords, causing an ongoing investigation into all three major credit reporting companies.

These are a mere fraction of the ongoing attacks worldwide to online accounts. And these are just a tiny bit of the successful ones. Passwords are big business for the unethical computer geek. 

And the weakest link? YOU.

That's right - the weakest part of any security system is the users, both administrative and end-user alike. Don't take this an an insult; take it as a lesson you need to learn, and implement NOW. You see, there's a special type of computer attack, called "Social Engineering". And the interesting part is that it doesn't actually have to use a computer at all, though it often does, as we'll see later.

The movie-myth version of a hacker (actually properly known as a "cracker") sitting in front of a keyboard, typing furiously for hours to break into a Gibson computer and bring down the company is generally erroneous. But the Hackers movie has two things right: the weak password ("God"), and when Zero Cool/Crash Override calls the security guard and gets the number to the dial-up modem.

Whoops.

Social Engineering is defined on Wikipedia as:
"...the art of manipulating people into performing actions or divulging confidential information. While it is similar to a confidence trick or simple fraud, it is typically trickery or deception for the purpose of information gathering, fraud, or computer system access; in most cases the attacker never comes face-to-face with the victims."

In other words, they trick you into giving up some vital piece of information, often your password, or details to figure it out. Or they get you to reveal private details like your username. They might call you, email you, or text you.

In the movie, Crash Override tricks the guard into giving up a vital piece of information, allowing him to take over the TV network.

Okay, so that's Social Engineering. What about the title of this post (Passwords)?

See, passwords are often the only thing that separates crackers from getting into your account. Once that's gained, it's way too easy. 

So, you need a strong password. But what's considered "strong"? Basically, if any part of the password is found in the dictionary, it's a bad password. But you can't have a random string of characters and expect to remember it (well, most people can't, anyway). So you need a password that's hard to guess - even if the cracker has access to a 25-GPU Cluster that can make 63 billion guesses per second.

That's why it's important to make a STRONG password, not just an "okay" one.

What makes a strong password?

Generally, it's not complexity (though that's still a factor). It's LENGTH. Many systems still require only six character minimum. Some require eight. With today's technology, that's not nearly enough. Aim for TWELVE if you can. Maybe more. While most systems do have a maximum amount of characters, this number is very high (like 45+ characters), so you rarely need to worry about having too much.

The general requirements for complexity are that you need three out of the following four categories:
  • Upper case letters (A-Z)
  • Lower case letters (a-z)
  • Numbers (0-9)
  • Special Characters (@, #, !, &, *, and so on...)
You should have all four of these categories, even if your system doesn't require it. Also, don't make semi-obvious replacements (using @ for "a", as an example). 

What other items should I avoid when making a password?

Well, avoid keyboard patterns. I work as a desktop technician, and there was one point we had to gather every field users' passwords. Since they don't handle highly sensitive data, this wasn't a major issue, but we got to see what types of passwords are being used. Here are some examples:
  • Password4
  • Password9
  • Password99
  • P@ssword1
  • <usersname>1
  • <companysname>1
  • <dogsname>1
  • Poiuytrewq1
  • pl,okmijn
So they get from absurdly simple (and UNBELIEVABLY easy to crack), to relatively easy-to-find information (user name, company's name, pet's name), to...wait...what are those last two? They appear sufficiently random, don't they?

Nope. Look at any US keyboard, and check those keys in the order given. See any patterns emerging? We saw a lot of this, and people think they're being clever. The problem is that crackers are generally more so.

So let's avoid easily-guessable patterns and standard words as password bases, mkay?

Okay, so what can we do to get a strong, but memorable password?

First off, forget the word "password". Try to think in terms of "passphrase". In fact, many Linux systems are already thinking in this capacity.

Instead of a word, try thinking of a nonsense phrase. An example is "Correct horse battery staple". That's from a now-famous strip on XKCD, talking about how what seems to be a complex password might not be. It also shows how to make something nonsensical and somehow easy to remember. Throw in a number or special character, and now it's relatively impossible to crack (I say "relatively", because no password is truly impossible to crack - it just takes a LOT longer). 

So if I choose a nonsense phrase as my password (er...sorry, passphrase), why do I need to change it periodically?

Well, this is a two-part deal. 

First, if a cracker gets access to your account and you don't know, changing your password will immediately cut them off of access. This is generally not a big issue, as most crackers won't sit around silently, allowing you to retain your access. They'll dive in, get their information, cause whatever damage they want, and get out. But the process is still sound.

The second part has to do with how long it takes to crack a password. Remember that XKCD comic? They said it could take 550 years at 1000 guesses per second. But with advanced technology, crackers have significantly reduced that time to months or weeks - perhaps even less.

So if your systems password database is stolen, the encryption takes a while to crack, but not forever. If you change your password after the database is stolen, but before it is cracked, the cracker has just wasted a large amount of his/her time, and gotten nowhere. 

But with that huge 25-GPU machine you mentioned earlier, doesn't that make all this pointless?

Yes...and no. As I mentioned, passwords are often the only line of defense for your account - but they don't have to be. We can enable (on many, but not all, sites) 2-Factor Authentication. But that's a topic for the next post.

Tuesday, September 11, 2012

Troubleshooting Tuesday–Recovering Files or Older Versions

Have you ever deleted a file and realized you shouldn’t have? Or how about made a few changes to that huge spreadsheet, and accidentally clicked “Save”?

The longer you wait and more you do, after that fateful action, the harder it is to recover your file. So it’s important that every single action, every click you make on the mouse be directed towards recovery of the file.


First note: DO NOT REBOOT unless absolutely necessary (like when installing some recovery software programs).

This makes it harder to recover.

Option 1: Previous Versions

This is actually correctly termed as “Volume Shadow Copies”, and comes standard with Windows Vista and later. It also comes standard on Windows Server versions 2008 and later. It can be added to Windows XP and Server 2003 via add-ons, available for free download.

If you simply need to revert an existing file to an older version, this is a very good tool to use. However, with some creative use, it can restore deleted files, as well.

NOTE: This feature is NOT advisable to use as a primary backup system. Backups are a topic for a later post.

  1. Start by right-clicking on the file in question, and then click on “Properties”. A new window will pop up.
  2. In the tabs along the top, click on “Previous Versions”
  3. One or more versions of the file will show up – how many will depend on various factors – Each will have a date/time stamp to show you when that version was created.
  4. Click on the one you want, and click the “Restore” button at the bottom.  This will undo all changes made to the file since that date and time.
  5. Alternately, you can choose “Open” or “Copy”, with those features functioning like they do anywhere else.  If you open a Previous Version, it does NOT overwrite any changes since that version was created.  It simply opens as a separate file.  You can then save with a new name, save in a new location, whatever you’d like to do.

Volume Shadow Copies is a very flexible, and very powerful tool in undoing unwanted, but saved, changes.  But how does it restore deleted files?  Simply by restoring a previous version of the containing folder.

Follow all the same steps as above, but instead of navigating to (and right-clicking on) the file, you will click on the folder in which the file used to be located.  One thing to note, however: If you restore a folder to a previous version, ALL the files in it will be reverted, not just the one that was missing.  It may be safer to use the “Open” or “Copy” commands for folders.

How long Previous Versions are saved, and how frequently they are created, depends on several factors: How frequently the file(s) is edited, how much space is earmarked for Volume Shadow Copies by Windows (this can be changed by users), and if you turn your PC off very often.


Option 2: Recuva, Disk Digger and other software

So I’ve written before about CCleaner, the maintenance tool from Piriform. And those who know me know I prefer to stick with streamlined solutions; if a company offers solutions for more than one of my issues, I’ll tend to stick with them. In this fashion, a company has to perform well all-around, though not necessarily the best in a single area. It’s why I use Google for many of my home solutions.

So Recuva is Piriform’s file recovery software, and comes with some pretty rave reviews on various sites.  And it appears to have a higher-than-average success rate when other software applications had failed.  But it’s not perfect, and other applications have been shown to recover files when Recuva failed (and vice versa).

However, if you used CCleaner’s free space wiper function as part of its maintenance routine, even Recuva (or any other program) may be unable to find your deleted file(s).

I’ve no direct experience with Disk Digger and other programs, but they do have some very positive experiences, when even Recuva failed.  I urge you to try them out. 


Option 3: Restoring From a True Backup

This is the most likely to succeed, but requires forethought.  If a backup isn’t generated, then there is nothing to restore.

Companies set up a backup scheme on server and network shares, but few do on users’ individual PCs.
Most home users rarely set this up, but they should. 

To set up a backup properly, one needs another hard drive, USB stick, compact disc, or something NOT on the same physical device on which the file exists.  Yes, this means that if you save a “backup” on the same disk that the original is on…it’s…well…NOT a backup.

The good news is that you don’t need a server to perform a backup.  All you need is an external hard drive.  You can pick up a small portable one for less than $75 from Newegg or Amazon.  Hook it up to your PC, set up Windows Backup to run once a week or once a month (or however much you want to protect), and let it run.  Now, if you need, you can restore files from your backup.

If you only want to backup a small amount of files (say, Word documents and Excel spreadsheets, for example), then copy them to a USB thumb drive periodically.

The best news: if your PC’s hard drive fails, you can still get your important files back, and have very little work to catch back up.  This is why a true backup must be on a separate physical device.


Option 4: Online/Cloud Backups

This option is becoming more and more prevalent in today’s networked computing.  We’ll cover these options in a later posting.

 


Comments?  Questions? Feedback?  Leave a comment below, or email me at jackrockblc+blog@gmail.com.