






















Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!























The base of information security is the CIA triad : Confidentiality, Integrity, and Availability. We say that a computer, a network etc is secure if it has these three properties. CIA triad Confidentiality: prevent un-authorised uses and disclosure of information and permit authorized sharing of information (important for the military). Integrity: prevent unauthorized modification of information and permit authorized modification of information (important for banks); integrity also implies authenticity and non-repudiation of actions. Availability: prevent un-authorised withholding of information or services and permit authorized access to information or services (important for hospitals, e-commerce, etc).
Confidentiality means that operations, services, or information can only be accessible to people who are authorized. It allows the secure sharing of information with the right users, while blocking unauthorized people, preventing the disclosure of information. Confidentiality protects personal privacy and sensitive data when it is stored, processed, or transmitted. The unauthorized access to sensitive information can happen in two ways: ● Intentional → for ex. an attacker breaks into the network and reads the data. ● Unintentional → caused by carelessness or incompetence of people handling data Confidentiality can be guaranteed with: ● Data encryption makes sure that unauthorized users cannot read data they should not access. ● Access control manages which users are allowed to access certain data. The violation of Confidentiality can have impact on: ● Privacy : personal information, such as healthcare data, could be exposed. ● Economy : Attackers could steal money by making payments in your name.
Integrity is about protecting information from unauthorized modification or destruction. Only authorized changes should be allowed, while unauthorized ones must be prevented and identified.
It also includes: ● Authenticity : (be sure that a message comes from a particular entity), useful to guarantee that you are “talking” to the person that you think and to be sure that the information hasn’t been altered. ● Non-repudiation : the ability to determine if an individual has performed a certain action, it prevents someone from denying an action they actually performed (for example, sending a message or making a transaction). It requires protection against both intentional (e.g., malware, ransomware) and accidental (e.g., human errors) violations ( to violate data integrity or system integrity). Data integrity can be compromised both through: ● Human errors ● Attacks like destructive malware and ransomware integrity can be guaranteed with: ● version control and audit trails* , which helps guarantee that data stays accurate and authentic. A violation of integrity affects: ● the trustworthiness of information, resources, and services available online (bots can affect social media by posting many fake or manipulated messages) *registro cronologico dettagliato di tutte le attività e le modifiche avvenute all'interno di un sistema, un'applicazione o un processo, documentando chi ha fatto cosa, quando e da quale dispositivo
Prevent unauthorized withholding of information or services, at the same time it must permit access to information or services for authorized users. Violations of availability include: ● infrastructure failures (like network or hardware issues) ● infrastructure overload ● power outages (interruzione di corrente) ● attacks such as Distributed Denial of Services (DDoS) or ransomware To guarantee Availability you can: ● Employing a backup system and a disaster recovery plan. ● use cloud solutions for data storage The violation of Availability can impact: ● Economy (the longer the downtime(inattività), the larger the loss of money for companies for example) ● Fundamental rights (censorship is obviously bad for normal democratic life)
● Employees must maintain a “clean desk,” ensuring that sensitive documents are not left accessible or unattended. -Examples of security mechanisms : ● Authentication →Verifying the identity of a user, process, or device, often as a prerequisite to allowing access to resources in an information system. ● Authorization → The allowing or denying of access rights to a user, program, or process. ● Access control → The process of granting or denying specific requests. It's the combination of authentication and authorization. -Examples of security services are: ● http(s) ● access control
HTTP: If the HTTP protocol is used to transmit data, any information sent can be intercepted by hackers along the way. HTTPS : To address this problem, the HTTPS protocol is used. It is a secure version of HTTP that uses encryption to protect the data. In this way, transmitted data is encrypted and cannot be read if intercepted.
-Subject →is any entity (like a user, process, or device) that tries to access a resource. -Request →The subject sends an access request in order to access to some resources and data in a system, it can be granted or denied. -Guard: every request must pass from the guard, is responsible for allowing or blocking access. -Policy: is a set of rules to implement specific security requests and specifying which actions a subject can do on resources. -Isolation Boundaries: they prevent un-authorised access to sensitive parts. We can find two types of isolation boundaries: the outer and the inner. The first one ensures that nobody can bypass the Guard, the second one is the inner boundary, which protects the Audit Log, this boundary can never be by-passed.
The CIA triad also helps understanding security violations example: ransomware attacks : ATTACK -is a type of malware that threatens (minaccia) to publish the victim's personal data or permanently block access to it unless the victim pays money. -This attack encrypts data, making it inaccessible and a decryption key is required to unlock it. -Payments are typically made in untraceable cryptocurrencies that are hard to trace. -This type of attack violates data confidentiality( if the victim’s data is stolen), availability(because access is blocked) and integrity (files are encrypted and can be modified by the attacker). MITIGATION Zero Trust → is a security framework(/model =struttura) requiring all users (both inside and outside the organization's network) are authenticated, authorized and that the connection is continuously validated before giving access to applications and data. The security controls (mitigation strategies) may affect: ● People (rules for setting password) ● Process (regularly update software) ● Technology (authentication and access control) These controls can be classified in: ● Preventive, before the bad event (for example locking out unauthorized intruders) ● Detective, during the bad event (for example turning an intruder alert on a dashboard) ● Corrective, after the bad event (for example recovering deleted data from a backup) -Selecting controls is based on:
● unknown software bugs ● weak passwords (debole)
-Any situation or event that could negatively impact an organization’s operations, assets, or people through an information system, by causing unauthorized access, destruction, disclosure, or modification of information, or disruption of service. -the potential for a threat-source to successfully exploit a specific vulnerability. -Threats can be characterized as a combination of ● intent = propensity to attack ● capability = ability to successfully attack Examples: ● Hackers: ○ break a password ○ Use social engineering to get a password (ingegneria sociale) ○ DoS attacks ● virus →A virus is a self-replicating program that requires user action to activate such as clicking on Email ● worm → is a self-replicating program that does not require user action to activate. It propagates itself over the network, infects any vulnerable machine it finds
-Any kind of malicious activity that tries to collect, disrupt, deny or destroy information system resources or the information itself digression on attacks -Cyber attacks are borderless and to be effective try to reach as many victims as possible! -On average, in small companies it can take three weeks to realize that a hacker has entered their system An example of mitigation is using TLS over HTTP, that reduces the risk, but the threat will still be there given that the attacker may steal the key of TLS traffic.
-When studying risks both before and after an attack, it is important to consider that if the threat manages to exploit the Vulnerability, then there is a Risk. If this is unacceptable, then Risk Mitigation must be implemented. This reduces the Threat, and the cycle continues until the residual Risk is acceptable. RISK = the probability that a particular security threat will exploit a system vulnerability. Risk is also a measure of how much a particular circumstance or event may be potentially threatened, is typically a function of:
A threat model is a structured representation of all the information that affects the security of an application.The threat model specifies which are the threats that may violate the CIA triad properties A threat model shows: ● A description of the system ● What we assume about it. ● Possible threats to the system ● How to stop or reduce problems. ● How to check that our solutions work. -threat modeling is crucial: ● It is crucial to model the attacker’s motivations, capabilities, and threats. ● Talking about secure systems without an attacker model makes no sense. ● Absolute security does not exist, not even for isolated (“air-gapped”) systems.
Security training is becoming more and more important for IT professionals. They often make decisions that affect security and privacy, but many are not properly trained. This lack of training creates weaknesses that make it easier for attackers to succeed. Every person with access to a computer system is a potential attack point. That’s why it is important that all users receive security training. From basic users, who need fundamental training, to system administrators, who require more advanced training.
-identity = a set of attributes that characterize an entity -attribute = a characteristic or property of an entity that can be used to describe its state, appearance or other aspect. For example the identity for a person may be composed by these attributes → digital identity = an identity whose attributes are stored and transmitted in digital form Digital identity is seen as an opportunity to drive transformational change for citizens, businesses, and governments. The adoption of mobile technology for digital identity solutions across governments support government performance and delivery and promote a more connected society. -The theme of a unique digital marketplace is relevant in Europe →One of the key factors is making the national digital identity system compatible.
In the enrollment the user attributes are associated with its digital identity, so this phase is based on collecting information about the user. (This phase is crucial because you have to find a method to verify that the entity that is enrolling is really who he says he is.) So the enrollment is composed by: Resolution: The essential user attributes (Personal Identifiable Information (PII) →the minimum set of PII are full name, date of birth and home address) are collected. At this stage, two identity documents are also gathered (driver’s license, passport, ID card, etc.). The user is now uniquely identified in a given context. Validation : The collected attributes are validated based on evidence from an authoritative source. Check of the images of the license and the passport for alterations, coherence of the information on the documents and compliance against standard, check with the issuing sources for the license and passport and confirm that the information matches. The attributes are now associated with a real person. Verification: The evidence is verified. At this stage, the applicant is asked to provide a photo of themselves to match with the license and passport. A code is also sent to the user’s contacts to verify ownership, etc. The user is now confirmed, and their identity is certified. The enrollment has an Identity Assurance Level (IALs) (It is the level of confidence that the applicant is really who they claim(/say) to be): ● IAL1: The attributes, if present, are self-declared or considered as such. ● IAL2: A person, either remotely or in person, verifies the attributes. ● IAL3: The attributes are verified by an authorized person, and the physical documents are examined.
-In the ‘60, passwords were stored in dedicated files in plain text, but this posed a very high risk. Indeed, if an attacker managed to access that file, they could easily obtain all the passwords -In the ‘70, passwords were used to protect both resources and sensitive data: ● passwords were protected by using hash functions ● after, not only hashing but also salting was used With hashing only the user needs to know the real password, given that the system and the verification module doesn't need to know it. MORRIS WORM -Morris worm used easy passwords to spread, a coding error allowed the worm to infect multiple times the same computer (so it was able to do a DoS attack) after morris worm… -passwords were stored in shadow files(readable only by those users who have access to the system root directory) →we use access control -with the rise of the World Wide Web and eCommerce, there was a first attempt to replace passwords with certificates based on public key cryptography. However, managing certificates on both the client and server side was too complicated, so the idea failed. As a result, certificates are now mainly used by servers, while users usually authenticate by passwords. -then web services increased and led to usability problems for passwords:
-The attacks of cracking passwords can be done online or offline. online offline The online attacks can be easily mitigated, because it is sufficient to set a maximum number of tries and then to block the if an attacker is able to steal the file/database where passwords are stored, he can then do a brute force attack.
authentication procedure for an interval of time to make brute-forcing practically impossible. brute force -try all possible combinations of valid symbols up to a certain length. -this technique requires a lot of computational power, but nowadays a lot of it is available at a reasonable cost. dictionary attack the hacker searches through a restricted name space (for example popular passwords, user like name, names of friends etc.). A typical example of this attack is a dictionary attack (i.e. trying all passwords from an on-line dictionary). -((The Mirai botnet had included a file with 61 username, password pairs that were automatically tested to infect IoT devices.)) -in 2009 a large site (rockyou.com) got hacked. This website stored all its users’ passwords in plain text and all the passwords were exposed →this told hackers how humans construct passwords globally. cracking password in practice You have a file that contains password hashes (not the password itself) (crittografate) You know which hash method was used You also have a wordlist (a dictionary) — a list of possible passwords (like password, 123456, qwerty, etc.). A dictionary attack works like this: take one word from the wordlist, it applies the same hash method and see if the result matches one of the hashes in the file. If the hash you generated matches a hash in the file, then that word is the original password for that hash. mitigations Some mitigation techniques for this type of attack which can be done by the user are: ● Change default passwords ●don't choose passwords that are easy to guess (enforce a minimal password length and a password format) ● Change password regularly The problem is most people don’t follow the usual tips and nowadays this mitigation is outdated, 2 things make those tips less effective now: ● the cost reduction of computational power growing ● Attackers use smarter methods A better and simpler solution is to use passphrases (frasi mnemoniche) So the new National Institute of Standards and Technology (NIST) password limitations are:
Avalanche effect → just changing one single letter in the input string makes the resulting hashes look very different -Theoretically, it is possible to find collisions for any given hash function, but in practice the likelihood that such a collision can happen is practically impossible. The most used hash function implementations are → MD4 (weak), MD5 ( violates the strong collision resistance ), SHA-1 , RIPEMD-160, SHA- With hashing, you don’t always need to know the actual password. It’s enough to find a string that produces the same hash to log in as the user. Another benefit of hashing is that it makes comparisons faster: instead of checking a long password, you just compare the shorter hash. -problems with hashed password: ● Dictionary attacks ● Rainbow tables → a space/time optimization for precomputed hash→password lookup(ricerca).
salting -It is adding a salt to the password before hashing and it is stored with the hashed password. -This makes two equal passwords of two different users results totally different when hashed .an attacker must re-compute a rainbow table for each user hash. -an attacker still can crack a single password when he knows the salt (salts are usually stored in clear with the user name and hash of the password).
-Multi-factor authentication (MFA) is an authentication method that requires the use of more than one authentication mechanism to verify the identity of a user. The main authentication factors are: ● Knowledge → something only the user knows, e.g., a static password, personal identification number (PIN); ● Ownership → something only the user possesses, e.g., a token, smart card, mobile phone; ● Inherence→ something the user is, e.g., biometric characteristics such as a fingerprint. (A drawback of biometric factors is that once compromised, they cannot be changed.