Internet Protocol Authentication Header Last Updated : 29 Jul, 2024 Comments Improve Suggest changes Like Article Like Report The Internet Protocol Authentication Header (AH) is a component of the IPsec (Internet Protocol Security) suite that provides data integrity, data origin authentication, and optional anti-replay protection for IP packets. Authentication Header ensures that the data was not modified during transmission and verifies the identity of the sender. In this article, we will discuss Authentication Header.What is an Authentication Header?The Authentication Header (AH) is a security protocol used within the IPsec suite. Its primary function is to ensure that the message remains unmodified during transmission from the source and it confirms that the data originates from the expected source. Authentication Header achieves this by adding a header to IP packets, containing a checksum and a digital signature. Its main functions are:Message Integrity - It means, the message is not modified while coming from the source.Source Authentication - It means, the source is exactly the source from whom we were expecting data.When a packet is sent from source A to Destination B, it consists of data that we need to send and a header that consists of packet information. The Authentication Header verifies the origin of data and also the payload to confirm if there has been modification done in between, during transmission between source and destination. However, in transit, values of some IP header fields might change (like- Hop count, options, extension headers). So, the values of such fields cannot be protected from Authentication header. Authentication header cannot protect every field of IP header. It provides protection to fields which are essential to be protected.Authentication Header FormatNext Header - Next Header is 8-bit field that identifies type of header present after Authentication Header. In case of TCP, UDP or destination header or some other extension header it will store correspondence IP protocol number . Like, number 4 in this field will indicate IPv4, number 41 will indicate IPv6 and number 6 will indicate TCP.Payload Length - Payload length is length of Authentication header and here we use scaling factor of 4. Whatever be size of header, divide it by 4 and then subtract by 2. We are subtracting by 2 because we’re not counting first 8 bytes of Authentication header, which is first two row of picture given above. It means we are not including Next Header, Payload length, Reserved and Security Parameter index in calculating payload length. Like, say if payload length is given to be X. Then (X+2)*4 will be original Authentication header length.Reserved - This is 16-bit field which is set to “zero” by sender as this field is reserved for future use.Security Parameter Index (SPI) - It is arbitrary 32-bit field. It is very important field which identifies all packets which belongs to present connection. If we’re sending data from Source A to Destination B. Both A and B will already know algorithm and key they are going to use. So for Authentication, hashing function and key will be required which only source and destination will know about. Secret key between A and B is exchanged by method of Diffie Hellman algorithm. So Hashing algorithm and secret key for Security parameter index of connection will be fixed. Before data transfer starts security association needs to be established. In Security Association, both parties needs to communicate prior to data exchange. Security association tells what is security parameter index, hashing algorithm and secret key that are being used.Sequence Number - This unsigned 32-bit field contains counter value that increases by one for each packet sent. Every packet will need sequence number. It will start from 0 and will go till 2^{32} – 1 and there will be no wrap around. Say, if all sequence numbers are over and none of it is left but we cannot wrap around as it is not allowed. So, we will end connection and re-establish connection again to resume transfer of remaining data from sequence number 0. Basically sequence numbers are used to stop replay attack. In Replay attack, if same message is sent twice or more, receiver won’t be able to know if both messages are sent from a single source or not. Say, I am requesting 100$ from receiver and Intruder in between asked for another 100$. Receiver won’t be able to know that there is intruder in between.Authentication Data (Integrity Check Value) - Authentication data is variable length field that contains Integrity Check Value (ICV) for packet. Using hashing algorithm and secret key, sender will create message digest which will be sent to receiver. Receiver on other hand will use same hashing algorithm and secret key. If both message digest matches then receiver will accept data. Otherwise, receiver will discard it by saying that message has been modified in between. So basically, authentication data is used to verify integrity of transmission. Also length of Authentication data depends upon hashing algorithm you choose.How Does Authentication Header Work?When a packet is sent from source A to destination B, it includes both data and a header. The Authentication Header verifies the origin of the data and checks if any modifications occurred during transmission. Note that some IP header fields (such as hop count, options, and extension headers) may change in transit and are not protected by Authentication Header. Authentication Header focuses on protecting essential fields within the IP header.Modes of Operations in Authentication HeaderAuthentication Header Transport Mode: In the authentication header transport mode, it is lies between the original IP Header and IP Packets original TCP header.Authentication Header Tunnel Mode: In this authentication header tunnel mode, the original IP packet is authenticated entire and the authentication header is inserted between the original IP header and new outer IP header. Here, the inner IP header contains the ultimate source IP address and destination IP address. whereas the outer IP header contains different IP address that is IP address of the firewalls or other security gateways.How does the Header Deals with Replay Attack?In a replay attack, the attacker a copy of an authenticated packet and then send to the intended destination. As the same packet received twice, the destination user can face some problems. To reduce this problem, the authentication header use a sequence number field. At this initial stage, the value of this field is set to 0. whenever the sender sends the packets to the same receiver over the same SA, it increments the fields value by 1. If the number of packets over the same increase this number, then communication with the receiver sender must establishing a new SA with the receiver. At the receiver side, the receiver maintains a sliding window size to W. The default value of W is 64. This window right edge represents the highest sequence number N received so far for a valid packet. When the receiver gets a packet from the sender, it perform some action. The appropriate action depends on the sequence number of the packet. ConclusionThe Internet Protocol Authentication Header (AH) is an important security protocol in the IPsec suite that ensures data integrity, source authentication, and anti-replay protection for IP packets. AH improves IP communication security by assuring data integrity and confirming the sender's identity. It runs in two modes, transit and tunnel, and employs sequence numbers to avoid replay attacks. While AH does not provide encryption, it is critical for ensuring the integrity and validity of data in transmission. Comment More infoAdvertise with us Next Article Internet Protocol Authentication Header A AmanSrivastava1 Follow Improve Article Tags : Computer Networks GATE CS Similar Reads Cyber Security Tutorial Cyber security is the process of using best practices to protect computers, servers, systems, networks, and programs from digital attacks such as viruses, worms, ransomware, and other threats aimed at accessing, changing, or destroying sensitive data, extorting money from users, or interrupting norm 11 min read IntroductionOSI Security ArchitectureThe OSI Security Architecture is internationally recognized and provides a standardized technique for deploying security measures within an organization. It focuses on three major concepts: security attacks, security mechanisms, and security services, which are critical in protecting data and commun 8 min read Active and Passive attacks in Information SecurityIn Cybersecurity, there are several kinds of cyber threats you need to know these days, that can relate to computer security, network security, and information security. There are basically two forms of threats: active and passive attacks. An active attack is an attack in which attackers directly ha 9 min read Types of Security MechanismA security mechanism is a method or technology that protects data and systems from unauthorized access, attacks, and other threats. Security measures provide data integrity, confidentiality, and availability, thereby protecting sensitive information and maintaining trust in digital transactions. In 3 min read A Model for Network SecurityWhen we send our data from the source side to the destination side we have to use some transfer method like the internet or any other communication channel by which we are able to send our message. The two parties, who are the principals in this transaction, must cooperate for the exchange to take p 2 min read Cyber TechnologyBasics of Wi-FiWe've been studying a lot about the Wired Network. Ethernet is the most common example. Wired networks differ from wireless which uses radio waves rather than transmitting electrical signals over the cables. Wi-Fi stands for Wireless Fidelity. It is a technology for wireless local area networking wi 3 min read The Internet and the WebIntroduction :The internet is a global network of interconnected computers and servers that allows people to communicate, share information, and access resources from anywhere in the world. It was created in the 1960s by the US Department of Defense as a way to connect computers and share informatio 6 min read What is a Website ?A website is a collection of many web pages, and web pages are digital files that are written using HTML(HyperText Markup Language). To make your website available to every person in the world, it must be stored or hosted on a computer connected to the Internet round a clock. Such computers are know 5 min read Cryptography and Network Security PrinciplesIn the present-day scenario security of the system is the sole priority of any organization. The main aim of any organization is to protect their data from attackers. In cryptography, attacks are of two types: Passive attacks and Active attacks. Passive attacks are those that retrieve information fr 9 min read Public Key InfrastructurePublic key infrastructure or PKI is the governing body behind issuing digital certificates. It helps to protect confidential data and gives unique identities to users and systems. Thus, it ensures security in communications. The public key infrastructure uses a pair of keys: the public key and the p 7 min read What is Electronic Signature?Electronic signature or e-signature is an electronic way of signing a document or data through electronic devices, this means that such a digital form of signing is also seen as legal and authentic like the conventional hand-written one, whereby signatory has read all contents and accepted them, the 7 min read Identity and Access ManagementIn a recent study by Verizon, 63% of the confirmed data breaches are due to either weak, stolen, or default passwords used. There is a saying in the cybersecurity world that goes like this âNo matter how good your chain is itâs only as strong as your weakest link.â and exactly hackers use the weakes 11 min read What Is Cloud Computing ? Types, Architecture, Examples and BenefitsNowadays, Cloud computing is adopted by every company, whether it is an MNC or a startup many are still migrating towards it because of the cost-cutting, lesser maintenance, and the increased capacity of the data with the help of servers maintained by the cloud providers. Cloud Computing means stori 15 min read Cyber EthicsWhat is Cyberethics?Cyberethics is a branch of computer technology that defines the best practices that must be adopted by a user when he uses the computer system. In simple terms, it is the study of ethical issues related to the use of technology. It engages users to use the internet safely and use technology responsi 5 min read TrademarksTrademarks are the marks that are external to the goods to make the public identify a certain quality and image related with that product or service. It is an important way of promoting goodwill of the company or organisation with its clients or customers. It has a legal protection to prevent others 2 min read Fundamental Rights (Articles 12-35): A Comprehensive GuideConstitutional Rights in India: Articles 12-35 of the Indian Constitution are the all about fundamental rights which are essential human rights granted to every citizen of India. The fundamental rights in the Indian Constitution prevent discrimination based on race, religion, gender, and more. The F 14 min read Introduction to Ethical HackingToday, computer and network security against cyber threats of increasing sophistication is more important than it has ever been. Such an endeavor cannot be accomplished without ethical hacking. Ethical hacking means that authorized individuals work at exposing a security vulnerability and ultimately 10 min read Cyber CrimesCyber CrimeCybercrime refers to criminal activities carried out using computers and the internet, including hacking, data theft, malware attacks, and financial fraud. With businesses, governments, and individuals relying heavily on digital platforms, cyber threats have escalated, leading to billions in financi 12 min read Cyber Criminals and their typesCybercriminals are people who use the internet to commit illegal activities. They hack into computers, steal personal information, or spread harmful software. Their actions can harm individuals, businesses, and organizations. Often, they aim to make money, cause disruption, or gain unauthorized acce 5 min read Psychological Profiling in CybersecurityThe Cybersecurity Profiling is about keeping the computer systems safe from the bad peoples who want to steal the information or can cause harm. To do this better experts study the minds of these bad peoples called the cybercriminals. This study is called the psychological profiling. It helps us to 7 min read What is Social Engineering? Working, Types, Prevention and ImpactSocial Engineering is an umbrella term for multiple malicious activities done by cyber criminals over the internet through human interaction. It doesn't involve the use of technical hacking techniques. Attackers use psychology and manipulation to trick users into performing actions that could compro 8 min read CyberstalkingIn Cyber Stalking, a cyber criminal uses the internet to threaten somebody consistently. This crime is often done through email, social media, and other online mediums. Cyber Stalking can even occur in conjunction with the additional ancient type of stalking, wherever the bad person harasses the vic 7 min read How to Defend Against Botnets ?A botnet is a network of computers or devices that have been compromised and are controlled by an attacker, without the knowledge of the owners. These devices, once infected with malware, are controlled by the attacker to carry out activities, such as sending spam emails, launching distributed denia 5 min read Emerging Attack Vectors in Cyber SecurityIn Cyber Security, knowing about attack vectors is key to keeping information safe and systems secure. An attack vector is a way that cybercriminals use to break into a network, system, or application by taking advantage of weaknesses. Attack vectors refer to the various paths or methods that attack 7 min read What is Malware? And its TypesMalware is malicious software and refers to any software that is designed to cause harm to computer systems, networks, or users. Malware can take many forms. Individuals and organizations need to be aware of the different types of malware and take steps to protect their systems, such as using antivi 8 min read What is Phishing?Phishing is a form of online fraud in which hackers attempt to get your private information such as passwords, credit cards, or bank account data. This is usually done by sending false emails or messages that appear to be from trusted sources like banks or well-known websites. They aim to convince y 12 min read Cyber Crime - Identity TheftIdentity Theft also called Identity Fraud is a crime that is being committed by a huge number nowadays. Identity theft happens when someone steals your personal information to commit fraud. This theft is committed in many ways by gathering personal information such as transactional information of an 5 min read What is Cyber Terrorism?In the computerized age, where innovation saturates each part of day-to-day existence, the idea of digital psychological warfare has arisen as a huge danger. Digital illegal intimidation alludes to the purposeful utilization of computerized assaults to inflict any kind of damage, interruption, or dr 13 min read Cyber Crime TechniquesWhat is Proxy Server?A proxy server acts as a gateway between your device and the internet, masking your IP address and enhancing online privacy. But what exactly does it do, and why is it critical for businesses, developers, and everyday users? In this guide, weâll break down proxy servers in simple terms exploring how 9 min read Introduction to Password Attacks | Ethical HackingPassword Attacks are one of the imperative phases of the hacking framework. Password Attacks or Cracking is a way to recuperate passwords from the information stored or sent by a PC or mainframe. The motivation behind password cracking is to assist a client with recuperating a failed authentication 5 min read Keyloggers and SpywareWorms, Viruses and beyond !!This article introduces some very basic types of malicious content which may harm your PC in some way or the other.. The Threat The computer systems may become a victim of virus, worm, hacking etc types of attacks. The computer systems may crash, sensitive data can be stolen and misused or driver pr 5 min read What is a Trojan Horse? Definition, Examples and MoreThe name "Trojan Horse" is taken from a classical story of the Trojan War. It is a code that is malicious and has the capacity to take control of the computer. It is designed to steal, damage, or do some harmful actions on the computer. It tries to deceive the user to load and execute the files on t 6 min read Image Steganography in CryptographyThe word Steganography is derived from two Greek words- 'stegos' meaning 'to cover' and 'grayfia', meaning 'writing', thus translating to 'covered writing', or 'hidden writing'. Steganography is a method of hiding secret data, by embedding it into an audio, video, image, or text file. It is one of t 8 min read Difference between DOS and DDOS attackHere in the spectrum of cybersecurity, the various types of attacks should be distinguished for systems and networks to be protected. There are two categories of these; DOS, the short form for Denial of Service, and DDOS, which stands for Distributed Denial of Service. Both are meant to flood the ta 5 min read Types of SQL Injection (SQLi)SQL Injection is an attack that employs malicious SQL code to manipulate backend databases in order to obtain information that was not intended to be shown, The data may include sensitive corporate data, user lists, or confidential consumer details. This article contains types of SQL Injection with 6 min read Buffer Overflow Attack with ExampleA buffer is a temporary area for data storage. When more data (than was originally allocated to be stored) gets placed by a program or system process, the extra data overflows. It causes some of that data to leak out into other buffers, which can corrupt or overwrite whatever data they were holding. 3 min read Reverse Engineering - Software EngineeringSoftware Reverse Engineering is a process of recovering the design, requirement specifications, and functions of a product from an analysis of its code. It builds a program database and generates information from this. This article focuses on discussing reverse engineering in detail. What is Reverse 6 min read Difference Between Vulnerability and ExploitThe concepts of vulnerability and exploit are fundamental in Cyber Security, yet they represent different aspects of security risks. While a vulnerability refers to a weakness or flaw in a system that could potentially be exploited, an exploit is the actual method or tool used by attackers to take a 5 min read Basic Network Attacks in Computer NetworkMany people rely on the Internet for many of their professional, social and personal activities. But there are also people who attempt to damage our Internet-connected computers, violate our privacy and render inoperable the Internet services. Given the frequency and variety of existing attacks as w 7 min read Kali Linux - Hacking Wi-FiThese days the Wi-Fi networks are more secure than the older days, These days most wireless access points use WPA(Wi-Fi Protection Access) 2 Pre Shared Key in order to secure the network. This WPA 2 uses a stronger encryption algorithm which is known as AES which is very difficult to crack. When it 4 min read Web Server and its Types of AttacksWeb Servers are where websites are stored. They are computers that run an operating system and are connected to a database to run multiple applications. A web server's primary responsibility is to show website content by storing, processing, and distributing web pages to users. Web servers are essen 6 min read Types of VoIP Hacking and CountermeasuresVoice over IP or Voice over Internet Protocol (VoIP) is a collection of different technologies and practices that allows the delivery of voice communication, images, audio, video, through packet data networks over the internet protocol. This makes it very cost-efficient, flexible, and various other 4 min read How to Spoof SMS Message in Linux ?In this article, we will show how to spoof SMS messages in Linux using two of the following tools:- fake-smsSocial Engineering Toolkit (SET)1.) Fake-sms It is a tool written in simple script to send SMS anonymously. Features:Send sms anonymouslyFast sms deliveryInternational sms sending available.On 2 min read Prevention and ProtectionDifference Between Backup and RecoveryAs technology continues to evolve, everyone uses a device for either work or entertainment, resulting in data being generated continuously. Keeping the data safe is very important. With the increase in data, ensuring its safety has become very important. Proper storage and protection of data have be 4 min read Manual Code Review : Security AssessmentSecure Code Review is code assessment for identifying security vulnerabilities at an early stage in development lifecycle. When used together with penetration testing(automated and manual), it can significantly improve security posture of an organization. This article does not discuss a process for 3 min read Penetration Testing - Software EngineeringIn this guide, we'll explore the fundamentals of penetration testing, its importance in cybersecurity, and how it fits into the software development lifecycle (SDLC). From network security to web application security, we'll be going into various aspects of pen testing, equipping you with the knowled 10 min read Security Testing Tools - Software TestingSecurity testing tools are essential for identifying and addressing vulnerabilities in applications, systems, and networks before they can be exploited by malicious attackers. These tools play a crucial role in safeguarding sensitive data, ensuring compliance, and maintaining trust with users. In mo 8 min read Intrusion Detection System (IDS)Intrusion is when an attacker gets unauthorized access to a device, network, or system. Cyber criminals use advanced techniques to sneak into organizations without being detected. Intrusion Detection System (IDS) observes network traffic for malicious transactions and sends immediate alerts when it 9 min read What is Vulnerability Assessment?Living in a world with more and more complex threats posted by cybercriminals, it is imperative that you shield your networks. A vulnerability scanning is done to understand areas that are prone to an attack by the invader before they exploit the system. The above measures not only protect data and 6 min read Secure coding - What is it all about?So, you think you can code? Well, thatâs great to know⦠The world needs more geeks and nerds like you and me⦠But are your programs secure? This is what this whole article is all about. Secure codingAs a programmer, it is not only your job but also a moral responsibility to ensure that your code doe 5 min read Cyber ForensicsDigital Forensics in Information SecurityDigital Forensics is a branch of forensic science which includes the identification, collection, analysis and reporting any valuable digital information in the digital devices related to the computer crimes, as a part of the investigation. In simple words, Digital Forensics is the process of identif 2 min read Introduction of Computer ForensicsINTRODUCTION Computer Forensics is a scientific method of investigation and analysis in order to gather evidence from digital devices or computer networks and components which is suitable for presentation in a court of law or legal body. It involves performing a structured investigation while mainta 4 min read What is Network Forensics?Network forensics is about looking at how computers talk to each other. It helps us understand what happens in a company's computer systems. This is important when we need to find out if someone did something wrong using computers. To do network forensics well, we need to follow certain steps and us 5 min read Computer Forensics TechniquesPrerequisite: Introduction of Computer Forensics In the early 80s PCs became more popular and easily accessible to the general population, this also led to the increased use of computers in all fields and criminal activities were no exception to this. The word âforensicsâ means the use of science an 3 min read Mobile Forensics - Definition, Uses, and PrinciplesMobile Device Forensics also referred to as cell phone forensics, is a specific subcategory of digital forensics that involves the recovery of digital data from smart mobile devices such as smartphones and tablets. Taking into consideration that these devices are used in various aspects of personal 7 min read Cyber Crime InvestigationCybercrime Causes And Measures To Prevent themIn day-to-day life, everyone is leading their life with technology. Our daily life depends on technology. So, nowadays everybody knows the internet and is aware of it. The Internet has everything that a human needs in terms of data. So, people are becoming addicted to the Internet. The percentage of 10 min read Digital Evidence Collection in CybersecurityIn the early 80s PCs became more popular and easily accessible to the general population, this also led to the increased use of computers in all fields and criminal activities were no exception to this. As more and more computer-related crimes began to surface like computer frauds, software cracking 7 min read Computer Forensic Report FormatThe main goal of Computer forensics is to perform a structured investigation on a computing device to find out what happened or who was responsible for what happened, while maintaining a proper documented chain of evidence in a formal report. Syntax or template of a Computer Forensic Report is as fo 5 min read How to Stop Phishing?Phishing is the starting point of most cyberattacks. When sending malicious messages or creating a clone site, attackers use psychological techniques and social engineering tools, so protecting against such campaigns is not an easy task for information security professionals. To protect against phis 8 min read Like