2026-07-28 13:10
Status:
Tags: Coursera Learning Cryptography Cybersecurity Google IT Certificate - Technical Support & Fundamentals IT Security - Defense Against The Digital Dark Arts Encryption Hacking Security IT
ISDADDA - Module 3 - The 3 A’s of Cybersecurity- Authentication, Authorization, Accounting
==Authentication
-
Best Practices for Authentication:
-
Authentication, and by extension, identification
-
Identification- the idea of describing an entity uniquely, like your email address being your identification, but proving you are who you say you are is called authentication
-
You basically provide a password, proving that that email address does in fact belong to you. This is different from authorization, which dictates the resources you have access to
-
*“authn” for authentication
-
“authz” for authorization
-
You usually might use something like a password for authn, and make sure the password is strong, as in it is long and not just a regular dictionary word
-
However, there is often a trade-off between usability and security, because harder passwords would be harder to remember
-
This concept does apply to many other fields of security as well though
-
Incorporating good password policies into an organization is key to ensuring that employees are securing their accounts with strong passwords
-
A good password system enforces length requirements, character complexity, and non-dictionary words
-
-
Multifactor Authentication:
-
Multifactor Authentication- is a system where users are authenticated by presenting multiple pieces of information or objects
-
This can be categorized into three types
- Something you know
- Something you have
- Something you are
-
So something like a password for something you know, something like a bank card for something you have, and something you are like a biometric id
-
It is much more difficult to clone or steal multiple different types of authentication, if one is gone via a phishing attack, the others cannot be stolen as easily
-
-
The above is an example of a USB, or a physical token that generates a single use token each time it is used. It allows for the use of things called one-time-passwords, which can be used as an extra form of verification to prove you are who you say you are
-
Called a time based token that has a random seed value based on the time to generate a one time password
-
There is also the delivery of one time password tokens using SMS, the issue with this however is you are dependent on the security of your mobile carrier. It also doesn’t seem to be that difficult to by pass if for example someone might have found a way to sign in with your phone number and see your records, but in all fairness that is pretty hard
-
SMS can also be redirected or intercepted as well, but it is much more convenient than having to carry around a physical token
-
There is also mobile applications that work as a form of authentication as well, think of the microsoft authenticator app that you have to use to sign into the UoL home page
-
-
Multifactor Authentication Options:
-
Biometric Authentication- is the process of using unique physiological characteristics of an individual to identify them
-
A very common use of this is using your finger print to unlock your phone, first a special piece of hardware captures an image of your finger print, and then uses it authenticate that you are the owner of the phone
-
Biometric data should NEVER be stored directly
-
It is very difficult to update or change if it get’s compromised, so the general method is to hash it and then store it that way
-
One advantage of it is that it is more secure in actual authentication, you cannot give your friend your finger print
-
However, some people in school attendance have been using glue to fake each other’s finger prints, and this can be done with tape and other things too
-
-
Other biometric features include face, iris detection, voice and more
-
U2F- universal second factor, developed by google and other companies, it incorporates public key cryptography and other mechanisms to ensure a more convenient and secure second factor authentication experience
-
The U2F Tokens are referred to as security keys, which are small embedded processors, and have small embedded slots for other keys
-
It helps to protect against malware that might try to authenticate on your behalf
-
The authentication process is resistant to that of phishing attacks, and cloning because each of the keys has different codes embedded onto them, making them unique, being protected from tampering
-
-
Physical Privacy and Security Components:
-
There are a variety of MFA protocols that can be implemented to protect the confidentiality, privacy, and security of data and networks. The 5 types of authentication can be categorized as:
- Something you know - password or pin number
- Something you have - bank card, USB device, key fob, or OTP (one-time password)
- Something you are - biometric data, like a fingerprint, voice signature, facial recognition, or retinal scan
- Somewhere you are - geolocation, geofencing, GPS, Indoor Positioning Systems (IPS), NFC scanning
- Something you do - gestures, swipe patterns, CAPTCHA, or patterns of behavior
-
-
Supplemental Reading for Authentication:
- They’re creating fake fingerprints using things like glue, allowing friends to mark each other as present if they’re late or skip school.
-
Certificates, Part Two:
-
Certificates are public keys that are signed by a Certificate Authority, as a sign of trust
-
Server and SSL/TLS certificates where covered in ISDADDA - Module 2 - Pelcgbybtl (Cryptology), however, there are also other kinds of certificates, like client certificates
-
Which allow servers to verify and authenticate clients
-
Enterprise wifi set ups might use client certificates so it is important to know how they work
-
In order to issue client certificates, an organization must setup and maintain CA infrastructure to issue and sing certificates
-
They must basically become a CA
-
The client might also authenticate the server, allowing for mutual authentication, and therefore, trust
-
You show the certificate as a form of ID, and then that ID is checked to see if it is from a reputable source or not
-
There is also an expiration date for the check as well
-
The certificate has all of it’s data checked to make sure that it is valid for that current time, and use you want to use it for
-
It will also be checked against a Certificate Revocation List which is a list published by the CA which defines the certificates that have been revoked or expired
-
You must also prove possession of the private key that is in reference to the public key on the certificate, this is done so someone cannot just copy over the entire certificate and pretend it is theirs
-
-
RADIUS:
-
RADIUS - Remote authentication dial-in user service- is a protocol that provides AAA services for users on a network
-
It is a very common protocol that is used to provide access to things like public or private networks, as well as things like email services or VPN services
-
It can carry a wide range of authentication protocols like EAP or Extensible Authentication Protocol
-
Generally, you would not have to set up a RADIUS server, but you might be dealing with clients using a RADIUS server as a back-end, and so it is good to understand it
-
-
Clients who want to authenticate to a RADIUS Server do not directly interact with it
-
Instead, the client presents authentication credentials to a NAS or Network Access server, which will then relay the credentials over to the ISP’s RADIUS server. Then relaying those to an Authentication server on your internal network
-
-
Kerberos:
-
Kerberos- a network authentication protocol that uses “tickets” to allow entities to prove their identity over potentially insecure channels to provide mutual authentication
-
It uses symmetric encryption to protect protocol messages from eavesdropping from unwanted parties
-
The name kerberos comes from the Greek mythos of a three headed guard dog who guards the entrance to Hades
-
It was originally developed at MIT, and published as version 4, then version 5
-
Today (2018 at least) kerberos supports AES encryption and checksums to support integrity of data
-
The “tickets” are basically sort of tokens that prove your identity, used for authentication within of a system protected by kerberos
-
The authentication tickets let users authenticate to services without requiring username and password authentication for every service individually
-
A ticket will expire after some time, but it has provisions for automatic transparent renewal of the ticket
-
-
How the Kerberos Protocol Operates
- A user that wants to authenticate enters in their username and password on their client machine
- Their kerberos client software then takes that password and generates a symmetric encryption key from it
- The client then sends a plaintext message to the kerberos AS (authentication server) which includes the authentication ID of the user, the Secret Key is NOT transmitted
- The server then checks to see if there is an account in the authentication data base with that user ID, using something like an active directory server.
- Then, if there is a user, it will take a stored hash of their password and generate the secret key.
- The authentication server then takes this key, and encrypts the message they send back over to the user, containing a Ticket Granting Service key (TGT)
- The ticket granting ticket has information like the client id, and the time it is valid basically, therefore the first message can be decrypted using the shared secret key derived from the user password
- Then, that decoded message contains the other key which lets the user decrypt the second message, which then contains the Ticket Granting Ticket
- Now, there is enough information to authenticate with the ticket granting server, and can use that ticket to request access to data within the kerberos realm
-
Kerberos has received some criticism because it is a single monolithic service, meaning that if a single point of the process goes down, a whole wide range of users would not be able to log in
-
Generally, if the central kerberos server is compromised, the attacker could then impersonate any user by generating valid user tickets for their account
-
The clocks of the client and kerberos servers also have to be synced to work using NTP
-
There also needs to already be an established trust between the server and kerberos, meaning users cannot authenticate from unknown or untrusted clients
-
So cloud computing or bring your own device is not really available
-
Generally, you will encounter kerberos inside of places that use Microsoft open directory
-
-
TACACS+:
-
TACACS+- terminal access controller Access-Control System plus
-
It is an AAA protocol that was released as an open standard in 1983, it replaced the older TACACS protocol that had some before it
-
It is primarily used for device administration, authentication, authorization, and accounting
-
It is basically as opposed to RADIUS which is mostly only used for network access AAA
-
The differences are generally only related to the authorization and accounting portions more than authentication
-
-
Single Sign-On:
-
Single Sign-on (SSO)- an authentication concept that allows users to authenticate once to be granted access to a lot of different services and applications
-
Re-authentication for each service might not be needed, so you do not need a bunch of different usernames and passwords
-
It is generally used just to authenticate yourself to an LDAP server (active directory or openLDAP) and then grants you access to a bunch of places
-
It provides a cookie or token that can then be used in order places as a form of authorization
-
Kerberos is a good example of an SSO authentication service
-
It is very convenient because it allows users to sign in only once, and then have access to a bunch of different services
-
Meaning that passwords are less likely to be written down or something like that
-
The obvious downside is that when someone manages to crack into an account like this, they too have access to a much wider selection of services.
-
Therefore, it is pretty standard to use multi-factor authentication in conjunction with an SSO scheme
-
This however, opens up a new level of attack, why steal the sign in, when you can only steal that session cookie and get access for that session
-
It also lets you dodge multi-factor authentication since well, it already is authenticated
-
==Authorization
-
Authorization and Access Control Methods:
-
Authorization is usually tightly coupled with authentication
-
Authorization- pertains to describing what the user account has access to, or doesn’t have access to
-
A user may authenticate who they are, but if they are not authorized to access the system they authenticated for, then they will not have access
-
In kerberos for example, the ticket granting service will be where authorization happens, because the Ticket Granting Server will determine what the user can and cannot access
-
-
Access Control:
-
Oauth- an open standard that allows users to grant third-party websites and applications access to their information without sharing account credentials
-
Can be thought of as a form of access delegation, because access to the user’s account is delegated to a third party
-
It is accomplished by prompting the user about them allowing this third party to access their information
-
Typically lists exactly what it wants to have access to
-
Once accepted, the identity provider will give a token to the third party, letting them authenticate and authorize to see that data
-
-
Example:
- A website for making memes asks you for your email information to send and save the memes to whoever you would want. It would also you for this permission and receive a token, so that way the emails it sends would look like they were from you, instead of being directly sent from the service
- The Token would have a scope, saying that it only has access to the email, not other services related to the account
-
People can use Oauth as a form of phishing as well, by impersonating real Oauth authentication into tricking people into giving them authorization tokens
-
This was used as a worm, where a email looked like a colleague wanted to share a google doc, but when trying to follow the link, they were prompted to log in and authorize the action, leading to them being hacked
-
Oauth and OpenID are generally used together, but the former is purely for authorization, while the ladder, authentication
-
-
Access Control List:
- Access Control List (ACL)- a way of defining permissions or authorizations for objects
- The most common case where you would see this is in filesystem permissions, where a file stores an ACL about what users have what access to that given information
- These are also used in network security, giving or denying access to incoming or outgoing traffic on routers and other such times
==Accounting
-
Tracking Usage and Access:
-
Accounting- keeping records of what resources and services your users accessed, or what they did when they were using your systems
-
Basically keeping track of what your people did while they had the power to do shit
-
A powerful component of this is auditing which involves reviewing these records to make sure nothing is out of the ordinary
-
A TACAS+ server would be more involved with keeping track of user authentication, and what systems that authenticate, and what commands they ran in their session
-
RADIUS might track things like location, bandwidth usage, and session duration
-
So generally accounting is different across the different AAA service that you plan to use
-
==Glossary
Access Control Entries: The individual access permissions per object that make up the ACL
Access Control List (ACL): It is a way of defining permissions or authorizations for objects
Accounting: Keeping records of what resources and services your users access or what they did when they were using your systems
Auditing: It involves reviewing records to ensure that nothing is out of the ordinary
Authentication: A crucial application for cryptographic hash functions
Authentication server (AS): It includes the user ID of the authenticating user
Authorization: It pertains to describing what the user account has access to or doesn’t have access to
Bind: It is how clients authenticate to the server
Biometric authentication: Authentication that uses Biometric data
Certificate Revocation List (CRL): A means to distribute a list of certificates that are no longer valid
Client certificates: They operate very similarly to server certificates but are presented by clients and allow servers to authenticate and verify clients
Counter-based tokens: They use a secret seed value along with the secret counter value that’s incremented every time a one-time password is generated on the device
Data information tree: A structure where objects will have one parent and can have one or more children that belong to the parent object
Distinguished name (DN): A unique identifier for each entry in the directory
Extensible authentication protocol (EAP over LAN, or EAPOL): A standard authentication protocol
Identification: The idea of describing an entity uniquely
Kerberos: A network authentication protocol that uses tickets to allow entities to prove their identity over potentially insecure channels to provide mutual authentication
Lightweight Directory Access Protocol (LDAP): An open industry-standard protocol for accessing and maintaining directory services; the most popular open-source alternative to the DAP
Multifactor authentication (MFA): A system where users are authenticated by presenting multiple pieces of information or objects
Network time protocol (NTP): A network protocol used to synchronize the time between the authenticator token and the authentication server
OAuth: An open standard that allows users to grant third-party websites and applications access to their information without sharing account credentials
One-time password (OTP): A short-lived token, typically a number that’s entered along with a username and password
One-time password (OTP) tokens: Another very common method for handling multifactor
OpenID: An open standard that allows participating sites known as Relying Parties to allow authentication of users utilizing a third party authentication service
Organizational units (OUs): Folders that let us group related objects into units like people or groups to distinguish between individual user accounts and groups that accounts can belong to
Physical tokens: They take a few different forms, such as a USB device with a secret token on it, a standalone device which generates a token, or even a simple key used with a traditional lock
Remote Authentication Dial-in User Service (RADIUS): A protocol that provides AAA services for users on a network
Risk mitigation: Understanding the risks your systems face, take measures to reduce those risks, and monitor them
Security keys: Small embedded cryptoprocessors, that have secure storage of asymmetric keys and additional slots to run embedded code
Single Sign-on (SSO): An authentication concept that allows users to authenticate once to be granted access to a lot of different services and applications
StartTLS: It permits a client to communicate using LDAP v3 over TLS
TACACS+: It is a device access AAA system that manages who has access to your network devices and what they do on them
Ticket granting service (TGS): It decrypts the Ticket Granting Ticket using the Ticket Granting Service secret key, which provides the Ticket Granting Service with the client Ticket Granting Service session key
Time-based token (TOTP): A One-Time-Password that’s rotated periodically
U2F (Universal 2nd Factor): It’s a standard developed jointly by Google, Yubico and NXP Semiconductors that incorporates a challenge-response mechanism, along with public key cryptography to implement a more secure and more convenient second-factor authentication solution
Unbind: It closes the connection to the LDAP server
XTACACS: It stands for Extended TACACS, which was a Cisco proprietary extension on top of TACACS




