












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













Assignment 2 Part I.
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.
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
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.
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.
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.
vi. Personal firewall Used in homes and Corporateâs Intranet. It set rules between the internet and a personal computer/workstation or
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
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.
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.