Docsity

Computer Security Asssignment, Assignments of Computer Networks

Toggle sidebar
bg1
Assignment 2
Part I.
1. Password cracking and security systems of today.
The main reason is the advancement of both technology and hacking techniques. Even though the
users of the systems are aware of vulnerabilities when it comes to simple passwords, still the problem
of password cracking has not been fully solved, nor will it be solved shortly. Organizations mostly
use complex password policy measures. Due to this, hackers too have been busy improving their
password–cracking techniques. There are mainly two improvements that have been done and still
being done in the password cracking arena,
a. Advancement of computer processing capability which is available for hackers to use. Hackers
nowadays have an access to computers whose processing capacity is tremendous especially the
graphics processors whereby password cracking job has been reduced to some seconds or few
minutes to few hours. This is because processing has been increased a thousand times than the
traditional times. Processors work faster than before even for a similar computer with the same price
as before that used some CPU only. Let’s us take a good example of a PC that is running AMD
Radeon HD797) GPU. Such a computer can on average do a combination of up to 8.2 x 10^109 per
second dependent on the algorithm a hacker implemented in scrabbling the password. In the provided
traditional information, the password to be hacked was only 242, this could be cracked in even under a
second by some recent algorithms.
b. Another drastic improvement is the advancement of algorithms. Recent sophisticated password
cracking algorithms has made it easier to generate potential passwords. There is an artificial
intelligence technology called natural language processing (NLP) which has allowed a combination
of both letters and probability to generate possible passwords. It even goes deeper to reduce the size
of passwords to be searched – by using a technique known as standard Markov Modelling from
Natural Language Processing.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14

Partial preview of the text

Download Computer Security Asssignment and more Assignments Computer Networks in PDF only on Docsity!

Assignment 2 Part I.

  1. Password cracking and security systems of today. The main reason is the advancement of both technology and hacking techniques. Even though the users of the systems are aware of vulnerabilities when it comes to simple passwords, still the problem of password cracking has not been fully solved, nor will it be solved shortly. Organizations mostly use complex password policy measures. Due to this, hackers too have been busy improving their password–cracking techniques. There are mainly two improvements that have been done and still being done in the password cracking arena, a. Advancement of computer processing capability which is available for hackers to use. Hackers nowadays have an access to computers whose processing capacity is tremendous especially the graphics processors whereby password cracking job has been reduced to some seconds or few minutes to few hours. This is because processing has been increased a thousand times than the traditional times. Processors work faster than before even for a similar computer with the same price as before that used some CPU only. Let’s us take a good example of a PC that is running AMD Radeon HD797) GPU. Such a computer can on average do a combination of up to 8.2 x 10^10^9 per second dependent on the algorithm a hacker implemented in scrabbling the password. In the provided traditional information, the password to be hacked was only 2^42 , this could be cracked in even under a second by some recent algorithms. b. Another drastic improvement is the advancement of algorithms. Recent sophisticated password cracking algorithms has made it easier to generate potential passwords. There is an artificial intelligence technology called natural language processing (NLP) which has allowed a combination of both letters and probability to generate possible passwords. It even goes deeper to reduce the size of passwords to be searched – by using a technique known as standard Markov Modelling from Natural Language Processing.

As seen above, the recent advancements are way much ahead of traditional ways of generating passwords. In past, strong passwords were being generated by computers from pseudo-random generators. They were only 8 characters from 36-character alphabets. Possible strings were 36^8 which was about 241.^ A major drawback was, the pseudo-random generator could only afford to generate 2^15 passwords. This gave a very easy way of hacking passwords since there were a few of them. A system whose password can be hacked easily is not providing good security.

  1. There should be of say (p) permissions for a web server to access the user’s directory. Such permissions should be executed. i. The web server also would need read/execute (r-x) ability into the web directory. ii. It should also be able to read (r) if it is required to. A summary of the above condition can be summarized into 3 cases; First case: owner, Group, Other: rqx --- --- Second case: Owner, Group, Other: rwx rx --- Third case: Owner, Group, Other: rwx r-x r-x We can now conclude that, upon satisfaction of the access requirements of the webserver: the first case and also the second case could be assigned. However, sometimes running such a server would simply be inappropriate. Reasons are as highlighted below; a. A web server does not have write permissions. That means when the webserver is having an application, whose functionality involves writing or updating information will not perform. b. Information will not be available to read. This is because, say we consider a second case, which others do not have access. a

  2. Yes, the packet filter will block all the outside attempts.

Reason. It is very easy to implement packet filtering. However, it is good to note that, a device providing packet filtering is not at the same level as the proxy firewalls or other applications in ranks of security. A packet filter is set up with specified rules. These rules are based on the matches in TCP or IP fields. In the given scenario, if an incoming request has a match to the rules, then, the rule is invoked. From this point, the rule invoked determines whether or not the packet will be permitted or simply discarded. On the other hand, if there is no matching rule, a default remedy will be taken. There are two defaults remedy actions as discussed below; a. Default- Discard. If there is no express permission, it is prohibited. This means everything is blocked. For this case, service must be added on a case-by-case basis. This kind of policy suits our given scenario – used by organizations. This is because it is more visible to users who are likely to see the firewall as a hindrance. The more rules will be created, the more this visibility reduces. b. Default – forward. If there is no express prohibition, it is permitted. This means the barrier is more open as anything that is not prohibited will pass through. This kind of scenario is used in an open organization like a campus or school kind of setup. Providers in this default encounter less security in the long run. However, a simple packet filtering firewall should allow all the incoming(inbound) network traffic for all the ports that are highly numbered (>1023). This will allow the occurrence of TCP-port traffic to occur. By doing so, a vulnerability is created. Unauthorized users can take advantage of such a vulnerability. To curb such vulnerabilities, a stateful packet inspection firewall is implemented. What it does is, tightens up the security. It does this by creating a folder/directory for all the outgoing (Outbound) TCP connections. There is also an entry for every previously established connection. The filter will only allow the highly numbered ports of the packets that are already in the profile of the entries inside the folder. The table below shows an example of rules.

It ensures clients’ domain name certificate is matching with the domain name of the server. This will make sure that the server is located in the same network address as specified by the domain name found in the certificate. This helps in mitigating the attack. Example, Let us say we have a client and server communicating, but in between, there is a hacker. The server sends the public key and the domain name to any client who wants to connect to it. An attacker in between will get the certificate. But an attacker will not decrypt the data. The reason is, it is only the server that has a matching private key for decrypting the data. This will make an attacker not succeed in decrypting the data. If the hacker tries to use a certificate that has not been validated by a reputable certificate authority, then a browser of the client will identify the attacker immediately. b. Password sniffing Password sniffing is protected through encryption. SSL uses the concept of public and private key pairs. Webserver sends a public key to every one of the clients in the web servers’ certificate. A private key is stored by the webserver as secret. A client gets the public key and uses it to encrypt data. No one can decrypt the data if they dint have a matching private key. A web server has the secret private key and it uses it to decrypt the password. c. IP spoofing When two hosts are communicating, their communication should be encrypted. SSL provides this. It ensures a unique key is generated between two communicating hosts. Spoofer will have a hard time figuring out communication patterns between the hosts. This is an achievement when it comes to mitigation of the IP spoofing as spoofer will not get a chance to see the IP or messages between the communicating hosts. d. IP hijacking SSL ensures two communicating hosts do that in an authenticated manner. They share a temporary secret key between them for secure communication. An attacker will have to figure out the key to replace one of the hosts. To do that, an attacker will have to break the encryption. The certificate

must also be verified. This feature is the one that makes it even hard for the attacker to replace one of the hosts. Also, on top of encryption, there is a feature known as Message Authentication Code (MAC) that ensures the integrity of the message is maintained. e. SYN flooding SSL does not protect much from the SYN Flooding attack. This is because SYN attacks try to overwhelm the server resulting in reduced TCP handshaking taking place. SSL protocol is invoked after there is a successful TCP handshake. Thus, we can conclude that SSL does not participate in SYN flooding protection much.

  1. Components of IDS. a. Sensors – they collect data. They also relay collected data to analyzers. Input into the sensor can be log files, network packets, or system call traces. b. Analyzers – relies on sensors or other analyzers for data. They determine if indeed an intrusion took place. Analyzers give results of intrusion by providing evidence of such an event and a conclusion. The analyzer can go ahead and provide mitigation steps for detected intrusion. The analyzer also stored inputs for future analysis in databases. c. User interface – it is an intuitive, easy-to-use feature of IDS. It enables a user to interact with IDS to view outputs from the output of the analyzer, or also take control of the system by modifying different parameters to perceive different behaviors of the system. Approaches for analyzing data. IDSs uses approaches below in analyzing data: i. Signature/heuristic detection – this method uses previously known signatures (malicious patterns) also known as attack rules/heuristics. These known patterns are compared with the detected behavior. A decision is then made to decide if it an intrusion or otherwise. This kind of method detects only known patterns.

It provides safe communication between an application and the remote server/host. iv. Circuit – Level Gateway Can either be a circuit-level gateway or a stand-alone system. Sets up 2 TCP connections; a. between itself and the TCP user located in the outside host. b. TCP user located inside the host and another one between itself and the TCP user located outside the host.

TCP

Host-based firewalls Provide an additional layer of protection. Rules can be set for a specific domain. An example is a corporate server that can be added to a network with its independent rules that do not conflict with the network rules.

TCP, FTP

vi. Personal firewall Used in homes and Corporate’s Intranet. It set rules between the internet and a personal computer/workstation or

TCP/IP,

enterprise network and the internet Part II: Authentication and Access Control Project 1: Best‐password generator Project 1: Report. Introduction. In the 21st^ century, the use of a computer, mobile phones, laptops, tablets, and any other device that is considered a computer system will require a password at some point. Also, we live in an age of social media. A social media operates under an account. These accounts required passwords. Different companies too, use different kinds of applications for their daily operations. Suck applications require string passwords for authenticating users. We can then conclude that a password is a secret combination of characters used to gain access to a computer system or a user account. However, there exist attackers. These are the people who are focused on breaking into a computer system for different reasons. Thus, it brings us to the mitigation practices of such kind of behavior. One way to mitigate guessing or breaking passwords is by using strong passwords. In this lab, I researched coming up with strong passwords. I also implemented my research findings by coming up with a python program to generate passwords for users using a specified password policy. Weak passwords. Passwords should be in a way that a human being cannot guess and also a computer cannot figure out. Weka passwords are those that have few characters. The shorter a password is, the more easily it can be cracked. Examples of weak passwords include passwords that have only letters. Some users also like their date of birth as passwords. Such kinds of passwords can be guessed by a human being.

Sample results The screenshot below shows a sample password generated by the password generator.

As we can see, the password generated has 10 characters with symbols, numbers, uppercase, and lowers characters. Conclusion Any system should have a strong person no doubt. In this lab, I was able to learn the importance of strong passwords. I was also able to write a password generator with python.

mode

    • r Reading data in the log file.
  1. N Disabling packet logging.
    • W Showing Interfaces. Checking Interface List with Snort. Since snort monitors traffic coming in and out of the system, it is a good idea to check on the interfaces that are available to know which interface to target. I used command snort -W to check instances in my system as shown in the screenshot below; Screenshot-1: interfaces. From the above screenshot, we can I had 10 interfaces, including Bluetooth, VirtualBox (I host some virtual machines there), and Wi-Fi. This means I will easily target an interface by using its index number. Running snort in Sniffer mode.

When you run Snort in sniffer mode, what it does is, read all the packets then lit them on the console. I used the command snort -dev -i 6 to run snort in sniffer mode in my system. The command is broken down with its functions as shown below; -dev: Snort will run and capture packets. -i: used to specify interface using an index number. I used index 6 which according to my system, the interface belongs to Microsoft Wi-Fi Virtual Adapter. Screenshot-2; Running snort in sniffer mode.

  • l: Tells Snort to run in logging mode. ../log/snort: specifies the directory to store all the logged information. Screenshot-4: Packet-logging mode. Screenshot – 5: log file. Log files list all the information about captured packets. File, snort.log.1622648242 was written once snort finished running. Conclusion.

From the demonstration of this lab, we can see how powerful snort is. If you set the rules in IDS mode, you can get alerts on the intrusion from the system. Also, you can easily analyze the captured packets. This is why a Snort is a strong tool for IDS/IP.