Wednesday, February 8, 2012

Intrusion Detection Systems and Intrusion Prevention Systems

If you're studying for one of the security certifications like CISSP, SSCP, or Security+ you'll come across intrusion detection systems and intrusion prevention systems. An intrusion detection system can detect and alert on potential intrusions, and an intrusion prevention system goes a step further and can block an attack. There's a lot of depth to these topics and if you want to take a deep dive into the topics, check out NIST SP 800-94, Guide to Intrusion Detection and Prevention Systems (IDPS). This blog outlines the basics.

Host-based and Network-based

Intrusion detection systems (IDSs) and intrusion prevention systems (IPSs) are either host-based (HIDS or HIPS) or network-based (NIDS or NIPS).
  • Host-based. A host-based system is installed on a single computer such as a workstation or server. Its goal is to protect local resources on the host and it can detect attacks or intrusions on this system, but it cannot detect attacks on other systems.
  • Network-based. A network-based system monitors network activity and will include multiple sensors installed on network devices such as routers and firewalls. These sensors report activity back to a central monitoring console. It can detect network-based attacks, but it cannot detect anomalies on individual systems.


Pass the Security+ exam the first time you take it.
CompTIA Security+: Get Certified Get Ahead: SY0-301 Study Guide




Detection Methods

IDSs and IPSs primarily detect intrusions using one of two methods, knowledge-based or behavior-based.
  • Knowledge-based. This uses a database of known attack patterns and is similar to the signature file used to detect different types of viruses. It is also called signature-based and definition-based. The key is that the intrusion is using a known method that can be recognized. It's important to keep antivirus definitions up-to-date to detect emerging threats. Likewise, it's important to keep a knowledge-based IDPS signature file up-to-date.
  • Anomaly-based. Anomaly-based detection starts by creating a baseline of normal behavior. This baseline can take days or even weeks to create and is often called a training period. After the baseline is created, it then monitors activity and can report when activity varies from the baseline. For example, if network bandwidth usage is typically at 50 percent utilization for a specific connection, but increases to 95 percent sustained utilization, it indicates a change from the norm or an anomaly and will raise an alert. If the environment is updated or changed, the baseline needs to be updated.
Another method is known as stateful protocol analysis (also called deep packet inspection). In this method, traffic is examined for suspicious activity based on the protocol. For example, a typical File Transfer Protocol (FTP) session follows a predictable pattern where a user authenticates and then begins issuing commands. However, if the session deviates from the pattern, perhaps with the user issuing commands without authenticating, it may indicate an attack.


Studying SSCP?
This book covers the new objectives effective Feb 1, 2012.
SSCP Systems Security Certified Practitioner All-in-One Exam Guide




False Alarms

Both knowledge-based and anomaly-based systems are susceptible to false alarms (also called false alerts and false positives). In other words, they may report an attack that isn't actually an attack. The goal of security administrators is to reduce the number of false alarms to a minimum, while also ensuring that actual attacks are reported.

Thresholds are used to set the limit between normal behavior and abnormal behavior that may indicate a potential attack. As an example, consider a TCP SYN flood attack where an attacker sends a SYN packet but not the ACK packet to complete a connection. If this happened once in a ten minute period, it probably isn't an attack. If it happened one thousand times within a minute, it very likely is an attack. An IDS would use some number between 1 and 1,000 to as the threshold and when that number is reached, it raises an alert.

There isn't a perfect number for any threshold so administrators seek a balance. If it is set too high, attacks will not be detected. If it is set too low, the IDS won't be trusted due to the high number of false alarms. Most administrators are willing to accept some false positives if it will ensure they are notified when actual attack occurs.


Looking for quality Practice Test Questions for the SY0-301 Security+ exam?
CompTIA Security+: Get Certified Get Ahead- SY0-301 Practice Test Questions




Responses

When an IDS or IPS detects a potential intrusion it can respond either passively or actively.
  • Passive. A passive response will log the event and possibly provide a notification. The notification can be an email, text message, or page sent to key personnel, or perhaps a pop-up dialog box on the system.
  • Active. An active response will include the passive capability but will also take action to block the attack. It may terminate a connection or modify the access control list (ACL) on a router or firewall to block the attack.

IDS vs IPS

Active intrustion detection systems are often called intrusion prevention systems but this isn't always the case. The distinguishing difference is that an IPS is placed inline with the traffic. In other words, all traffic to a network passes through an IPS giving the IPS the ability to block malicious traffic. In contrast, an active IDS may be able to block an attack but if it is not placed inline with the traffic, it can only block it after the attack has started.

Sunday, February 5, 2012

Security+ Audio Files Now Available

Security+ SY0-401 Audio

Learn by Listening

Supplement your Security+ SY0-401 studies with audio files you can listen to while on the go. Listen to key topics from all the chapters of the top selling CompTIA Security+: Get Certified Get Ahead: SY0-401 Study Guide, or focus on just the topics you want to brush up on.
  • Learn while driving or commuting
  • Learn while exercising
  • Learn any time
Note that these audio files are not the entire book which could easily be forty hours of listening time. Instead, they focus on key information to supplement your studies.

Choose from one of two audio downloads currently available:
  • Remember This Blocks 
  • Questions and Answers 



Introduction and Remember This Blocks

  • Includes the full book introduction, and Remember This blocks from each of the 11 chapters.
  • The Remember This blocks highlight key testable information. Listening to these files will reaffirm key testable concepts.
  • 12 MP3 files zipped to about 71 MB in size.
  • Over one hour and 20 minutes of audio.
Audio files are only a few clicks away.

Buy the Remember This Audio here.



Listen on your iPod or MP3 player




Introduction and Practice Test Questions and Answers

Includes the full book introduction, and all of the practice test questions the end of each of the 11 chapters.
  • Each question includes a full explanation to help you understand why the correct
    answers are correct, and why the incorrect answers are incorrect.
  • 12 MP3 files zipped to about 175 MB in size.
  • Over three hours and 20 minutes of audio.
Audio files are only a few clicks away.


Buy the Practice Test Questions and Answers Audio here.





Audio files read directly from the CompTIA Security+: Get Certified Get Ahead: SY0-401 Study Guide by a professional voice actor.

Free sample from chapter 8 available for a limited time from this page. This audio sample includes the Remember This blocks from chapter 8 which are key topics to know for the exam.

Three Simple Steps to Success

You can achieve success with any worthwhile goal you desire by following three simple steps. It’s true. Anything. I could call them the three secret steps to success but they really aren’t secret. They are:
  1. Set a goal
  2. Listen for inspiration
  3. Take action
This simple formula works for anything you may want to achieve. It can work to help you pass a certification exam, get into the college of your choice, get the job of your dreams, write and publish a book, fill your life with wealth and abundance, create a product, or provide a service.

Anything.

If it’s so easy, why aren’t more people doing it? That’s a great question.

I know these three steps are easy to follow. However, I also know they aren’t common knowledge. For example, there are important elements to goal setting that can help people set and achieve their goals. Unfortunately, these elements aren’t widely known, taught, or practiced. Similarly, many people don’t understand how accessible inspiration is, or even how to recognize it when it comes.

These steps also take a little bit of discipline. Success comes by taking regular action toward a worthwhile goal and it takes discipline to set a goal and take regular action toward that goal. Failure is much easier because you can simply choose not to act. However, if you’re willing to take a few steps to identify what you want and bring it into your life, success is within your reach.

How Do You Achieve Success

Many times I’m asked how I’ve achieved something. For example, someone may ask how I earned my certifications, or how have I been able to write various books. The answers can be long and varied, but there’s a simpler answer. I’ve learned the secret of succeeding at any worthwhile goal I desire by following these three steps.

I won’t say that I’ve perfected them in my life. I continue to work on self-improvement. However, these steps have helped me enjoy some personally rewarding successes, and I continue to use them in my life.

If you give these steps a try, see how they work, and start using them regularly, you’ll notice that there is a great deal of depth to the concepts. There are many underlying reasons why they work. I’m won't attempt to describe the full depth of these steps within this series of articles, but I do want to give you practical steps you can start using right away for any worthwhile goal.

Worthwhile Goal

A worthwhile goal will not cause harm to you or anyone else. Often, you’ll find that a worthwhile goal not only provides benefits to you, but also benefits others. For example, you may be seeking a certification. Earning the certification will benefit you, but it will often increase your value to an employer and the knowledge you gain may help you prevent or resolve problems as an employee. Of course, the more valuable you are to an employer, the more likely you’ll be to earn more compensation for the services you provide.

Desire

When seeking success, your desire is an important element. In other words, seeking success based on someone else’s desire probably won’t get you far. However, if this is something you want to achieve, you can.

Of course, it is possible for others to motivate us to desire something and this sometimes works. For example, an employer may tell you that you have 30 days to pass a Security+ certification exam. Assuming you want to keep your job, the desire to earn this certification will be strong.

My Success

Many times I’m asked how I’ve achieved something. For example, someone may ask how I earned my certifications, or how have I been able to write various books. The answers can be long and varied, but there’s a simpler answer. I’ve learned the secret of succeeding at anything I desire by following these three steps. I won’t say that I’ve perfected them in my life. I continue to work on self-improvement. However, these steps have helped me enjoy some personally rewarding successes, and I continue to use them in my life.

I’ll follow this article up with three more blogs on the following topics.
If you’re interested, stay tuned.

“You don’t become great by trying to be great. You become great by wanting to do something, and then doing it so hard that you become great in the process.”
- Marie Curie

Wednesday, February 1, 2012

DoS, Smurf, and Fraggle Attacks

Denial of service (DoS) attacks such as smurf and fraggle attacks are important to understand when studying for any security certification including Security+, SSCP, or CISSP. Smurf and fraggle attacks are similar but they have subtle differences.

DoS Attack

A DoS attack comes from a single entity and is intended to make a computer’s resources or services unavailable to users. DoS attacks against a server prevent the server from responding to legitimate requests from users. A distributed DoS (DDoS) attack comes from multiple attackers at the same time.


Pass the Security+ exam the first time you take it.
CompTIA Security+: Get Certified Get Ahead: SY0-301 Study Guide




Smurf Attack

A smurf attack uses Internet Control Management Protocol (ICMP) to send a broadcast ping with a spoofed source address. It's easier to understand this by looking at one step at a time.
  • Normal ping. A regular ping sends one or more ICMP echo requests to a system and the system responds with one or more ICMP echo replies. This provides verification the remote system is operational. A regular ping uses unicast. In other words, the ICMP packet is addressed to one system from one system.
  • Broadcast ping. A broadcast ping is not normal. It sends the ICMP echo request to a broadcast address sending it to virtually all systems on the network. Each system will then respond to the system that sent it flooding this system with ICMP echo replies.
  • Spoofed source broadcast ping. The smurf attack spoofs the source address with the address of the victim, and then sends it out as a broadcast ping. Each system on the network will then respond, and flood the victim with echo replies.
There's an important point to remember though. Routers do not pass broadcast packets. This was actually a change in RFC 2644 released in 1999 in direct response to smurf attacks and the use of networks as smurf amplifiers. RFC 2644 is an update to RFC 1812 which stated that a router must default to forwarding directed broadcasts. Routers today comply with RFC 2644 so smurf attacks are limited to a broadcast domain. They will not go beyond a router.

With this in mind, it would be rare to see a smurf attack. However, that doesn't mean it won't be tested.

Note: Many firewalls block ICMP packets to prevent any type of attack using ICMP. If a ping succeeds, it verifies that the system is operational. However, if a ping fails it doesn't prove that the system is not operational. ICMP may be blocked preventing the ping.


Studying SSCP?
This book covers the new objectives effective Feb 1, 2012.
SSCP Systems Security Certified Practitioner All-in-One Exam Guide




Fraggle Attack

Fraggle attacks are similar to smurf attacks but instead of using ICMP, they use UDP ports 7 and 19.

As described earlier, the ping command uses ICMP and it is used to check if a system is operational. Tools are available that use UDP instead of ICMP and instead of checking to see if a system is operational, they check to see if the system is listening on a specific port. This is commonly done with many different types of vulnerability scanners used by both attackers and security administrators.

Chargen (character generator) is an older protocol described in RFC 864 (dated May 1983). A system listens on either TCP or UDP port 19 (known as the chargen port) for chargen requests. When a connection is established to this port, the system would respond with a constant stream of characters to the original system. Typically the original system would use TCP or UDP port 7 (known as the echo port) but this isn't required. When the original system begins receiving the characters, it knows the target system is operational, and closes the connection.

In a fraggle attack, a spoofed broadcast packet is sent to port 17. The spoofed address is the address of the victim. Since it is broadcast, it goes to every system on the network. If port 17 is open and the character generator service is running on these systems, they will send a stream of characters to the victim.

Realistically, systems today will not have port 17 open or the chargen service running. Additionally, routers do not pass broadcasts so any attacks are limited to a single network. Said another way, it is very unlikely you will ever see a fraggle attack today.


Looking for quality Practice Test Questions for the SY0-301 Security+ exam?
CompTIA Security+: Get Certified Get Ahead- SY0-301 Practice Test Questions




Basic Protection

In addition to ensuring that routers are configured in compliance with RFC 2644 and do not pass broadcasts, there are some other basic steps that protect you from these types of attacks:
  • Disable unnecessary services and protocols. If a service or protocol is not needed on a system, it should not be enabled. I cannot think of a system in use today that would need the chargen service so it should be disabled if it is even available on the system.
  • Close unneeded ports. If a port is not needed, it should be closed on both network-based and host-based firewalls. With the port closed, all traffic is blocked and attacks are stopped.
  • Use ingress filters on firewalls. Don't allow traffic into a network that shouldn't be there. A common ingress filter on a boundary firewall (between the Internet and an internal network), blocks all traffic coming from the Internet with a spoofed private IP address.

Summary

In summary, DoS attacks such as smurf and fraggle attacks attempt to prevent a system from responding to legitimate attacks. A smurf attack sends a broadcast ping with a spoofed IP address (the IP address of the victim), and ping uses ICMP. A fraggle attack uses UDP ports 7 and 19 instead of ICMP, and sends broadcast UDP traffic with a spoofed IP address (the IP address of the victim).

Tuesday, January 31, 2012

Kindle Version of Security+ Study Guide Now Available

The Kindle version of the Security+ Study Guide is now avaialble. This is the same content as the CompTIA Security+: Get Certified Get Ahead: SY0-301 Study Guide with more than 450 Security+ practice test questions, but as a Kindle edition, portable enough to store with as many as 50,000 more of your favorite books. Many people that used the SY0-201 Study Guide told me that they purchased both the paperback version for times when they wanted to read it from a book, and the Kindle version to have it available on the go. With this in mind, I set the price for the Kindle version at $9.99.

Free Kindle Apps Available

One of the great things about the Kindle ebooks is that you don't need a Kindle reader to read the books. If you don't have a Kindle, you can download free applications from Amazon for must about any platform from here. The have applications for the following platforms:
  • iPhone
  • Windows PC
  • MAC
  • BlackBerry
  • iPad
  • Android
  • Windows Phone 7
Additionally, they recently released the Kindle Cloud Reader. The Kindle Cloud Reader lets you read ebooks from a web browser without requiring a Kindle device.

Security+ Practice Test Questions on the Kindle

If you've already been studying for the Security+ exam and don't want to get the full study guide, check out the CompTIA Security+ SY0-301 Practice Test Questions. It includes 280 realistic practice test questions and dozens of flash cards all formatted specifically for the Kindle. The goal is for this to be more like a Kindle application rather than a Kindle ebook.

The book is organized in six chapters matched to the six Security+ domains so readers can easily focus on specific domains. Each chapter includes three sections:
  1. Practice test questions without answers. Created for readers that want to go through all the questions without seeing the correct answers or explanations.
  2. Practice test questions including answers formatted for the Kindle. One Kindle screen shows the question. When you decide what you think is the correct answer, go to the next Kindle screen to see the correct answer. Each question includes an in-depth explanation so you'll know why the correct answers are correct, and why the incorrect answers are incorrect.
  3. Flash cards formatted specifically for the Kindle to help reinforce important concepts. One Kindle screen shows a flash card type question and the next Kindle screen shows the answer.
These questions are a subset of the questions in the full Security+ SY0-301 Study Guide. However, readers have told me they've enjoyed these as a supplement to the study guide to focus on reinforcing the content.

Security+ Practice Test Questions on Mobile Apps

A recent blog also talked about the availability of Security+ Practice Test Questions for Your Mobile Phone. The benefit of these is that they are presented in actual test engine formats and also include flash cards. The content is a subset of the content in the CompTIA Security+: Get Certified Get Ahead: SY0-301 Study Guide but readers have told me they've enjoyed using them as a supplement on their mobile phones as an additional study source. These apps are currently available for:

Wednesday, January 25, 2012

Security+ SY0-301 Practice Test Questions

If you're preparing for the Security+ SY0-301 exam, you may be looking for some practice test questions. Recent blog articles were on authentication topics and the following two questions are samples of what you may see on the exam related to these topics. The two related blog articles are: Identification, Authentication, and Authorization, and Three Factors of Authentication.

Security+ SY0-301 Practice Test Questions

Q. What is completed when a user’s password has been verified?

A. Identification

B. Authentication

C. Authorization

D. Access verification

Answer below.


Looking for a full book on Security Practice Test Questions?
Check this out.
CompTIA Security+: Get Certified Get Ahead- SY0-301 Practice Test Questions




Q. Which of the following is an example of multifactor authentication?

A. Smart card and token

B. Smart card and PIN

C. Thumbprint and voice recognition

D. Password and PIN

Answer below.






SY0-301 Answers

Q. What is completed when a user’s password has been verified?

A. Identification

B. Authentication

C. Authorization

D. Access verification

Answer: B. A user is authenticated when the password is verified. The user claims an identity with a username. After users are authenticated, they are authorized to access resources based on their proven identity, and auditing can verify what resources a user has accessed.


Pass the first time you take the exam.
Get the full Security+ SY0-301 Study Guide.




Q. Which of the following is an example of multifactor authentication?

A. Smart card and token

B. Smart card and PIN

C. Thumbprint and voice recognition

D. Password and PIN

Answer. B. A smart card and PIN is an example of multifactor authentication since it uses methods from the something you have factor and something you know factor. A smart card and token are both in the something you have factor. Thumbprint and voice recognition are both in the something you are factor. A password and PIN are both in the something you know factor.

Sunday, January 22, 2012

Three Factors of Authentication and Multifactor Authentication

If you're studying for one of the security certifications like CISSP, SSCP, or Security+ it's important to understand the different factors of authentication, and how they can be intertwined as multifactor authentication. These are commonly known as something you know (such as a password), something you have (such as a smart card), and something you are (using biometrics. A basic understanding of these topics can help you correctly answer many different questions on authentication on any of these certification exams.
A previous post covered identification, authentication, and authorization. As a reminder, identification occurs when a user (or any subject) claims an identity. Authentication occurs when the user provides proof of the identity, such as with a password. Authorization grants access to resources based on the user's proven identity.


Pass the Security+ exam the first time you take it.
CompTIA Security+: Get Certified Get Ahead: SY0-301 Study Guide




Something You Know

The something you know factor includes passwords and personal identification numbers (PINs). This is considered the weakest form of authentication because users often use weak passwords, give them out, or write their passwords down.

A strong password is complex and includes at least eight characters. Complex means that the password uses a mixture of upper case, lower case, numbers, and special characters. Some documentation indicates using three of the four character types is enough, while other documentation states that a complex password has four character types. The key is that more character types results in a more complex password that is harder to crack. However, the bigger point is that many users create passwords with only a single character type.

Troy Hunt did a great analysis of passwords that were stolen from Sony's web sites and published on the Internet. He found that half used only a single character type and only 1 percent used any non-alphanumeric characters. Some of the top passwords were very simple: seinfeld, password, winner, 123456, purple, sweeps, contest, princess, maggie, and abc123. More than 64 percent of the passwords were found in common password-cracking dictionaries. Additionally, when users had accounts on two separate Sony sites, over 92 percent of them used the same password.

Password policies are often used to ensure that users create strong passwords and change them often. Some common password policy settings are:
  • Maximum password age. Requires users to change their password.
  • Minimum length. Ensures passwords have a minimum number of characters.
  • History. Remembers specific number of past passwords (such as last 5, or last 24 passwords). Prevents users from reusing the same passwords.
  • Minimum password page. Prevents users from changing their password right away. Used with the password history to prevent users from changing their password multiple times to circumvent the password history.


Looking for quality Practice Test Questions for the SY0-301 Security+ exam?
CompTIA Security+: Get Certified Get Ahead- SY0-301 Practice Test Questions




Something You Have

Smart cards and token, or fobs are common examples within the something you have factor of authentication. A smart card is a credit card sized card that holds key information about the user. Smart cards have certificates embedded in them using TLS and provide very strong authentication. This blog covers the differences between smart cards, a common access card (CAC), and a personal identity verification (PIV) card.

A fob (sometimes called a token) has an LED display that shows a number that changes regularly, such as every 60 seconds. This number is synchronized with a server. When users log into a website, they enter the number shown on the display to verify they have the token. This factor is often combined with another factor to provide multifactor authentication.


Studying SSCP?
This book covers the new objectives effective Feb 1, 2012.
SSCP Systems Security Certified Practitioner All-in-One Exam Guide




Something You Are

The something you are factor uses biometrics to prove a user's identity. Fingerprints are very commonly used for authentication, but there are many other examples. Biometrics are often divided into two categories: physical biometrics and behavioral biometrics.
  • Physical biometrics are based on physical traits of an individual. It includes fingerprints, thumbprints, handprints, palms retina scanners, and iris scanners.
  • Behavioral biometrics is based on behavioral traits of an individual. It includes voice recognition, signature geometry, and key strokes on a keyboard.
Biometrics systems are susceptible to false readings. These are commonly known as:
  • Type 1 error. False Reject Rate (FRR). This occurs when a biometric system incorrectly rejects an authorized user.
  • Type 2 error. False Accept Rate (FAR). This occurs when a biometric system incorrectly identifies an unauthorized user as an authorized user.
Most biometric systems allow you to adjust the sensitivity of the system. For example, you can adjust it to minimize false rejections (FRR errors) but this will result in an increase in the false acceptances (FAR errors). The overall accuracy of a biometric system is identified with the crossover error rate (CER), where the FAR and FRR are equal. A biometric system with a lower CER is more accurate than one with a higher CER.


Looking for practice test questions to test your readiness for Security+?
CompTIA Security+: Get Certified Get Ahead- SY0-301 Practice Test Questions




Multifactor Authentication

Multifactor authentication combines two or three of the factors. Two common examples are:
  • A user has a smart card and also uses a personal identification number (PIN)
  • A user has a token and also enters a username and password
It's important to realize that multiple authentication and multifactor authentication are not the same thing. For example, if a user enters a pin (in the something you know factor), and a password (also in the something you know factor), this is not multifactor authentication.