This unit aims to provide students with an advanced knowledge of network security. Topics to be covered include the design and implementation of some important public key systems: RSA and Elliptic Curve algorithms; concepts of quantum cryptography; quantum computing and cryptography; wireless computing and cryptography; design, implementation and configuration of firewalls in depth; design, implementation and configuration of intrusion detection systems; prevention systems; advanced network security architectures; advanced wireless security: principle and practice; security in trusted-based computing environments; and quantum cryptography.
‘Network security and performance’ marked the ninth week of FIT5037. This is a logical extension of the previous weeks lecture of organizational level network security. There has traditionally been a mutual exclusivity between speed and security. This is most definitely a sore spot for many organizations, particularly when finding a degradation in performance after investing money! The lecture looked at common techniques that should be used to ensure convenience is not disproportional affected by security efforts. The notes outlined four key topics for the week:
Load balancing and firewalls
VPN and network performance
Network address translation [NAT] and load balancing
Network security architecture
Key awareness issues that were recurring through the lecture:
Security! – Does a software/hardware/architecture solution or combination of these provide sufficient security
Speed and availability – Do security solutions allow for the required level of service availability for operational requirements? Is service speed affected to an unacceptable extent?
Robustness – If one component fails, what are the repercussion for the rest of the network in terms of previous issues?
The diagram above illustrates how the adoption of load balancers and multiple parallel firewalls suffices speed and robustness requirements.
The lecture went on to introduce the topics of protocol security and certain VPN solutions.
Taking a more abstract view on computer security, week 8’s topic was computer security for large networks. This first part of the lecture discussed risk analysis. Some key steps in conducting risk analysis:
Value of assets being protected – if attacks break into our network what is the worst case scenario? This value is constantly rising in today’s business environment. This step will also establish a budget range for system security, there is no point spending 1 million protecting a system that contains information and assets worth one hundred thousand.
Threat identification – What are the known threats to our system? This could include likely attackers, the types of known exploits and an understanding of what possible unknown exploits may be capable of.
Identification of key system components:
Define each step in the security life cycle – Prevention -> Detection -> Response -> Recovery
Specifying policy areas for People, Processes and Tools
Begin development of security policy using a logical framework: Organizational -> Security Architecture -> Technical
Design, implementation and testing of chosen security tools:
Audit any security systems in place at set time periods (ie: once a year)
Understand that organization requirements can change quickly and that the security policy is in place to protect organizations whilst allowing them to operate as unhindered as possible, there is no point having a completely secure systems that takes employees 2 hours to gain access to.
Design of system wide security policies may come off as a more managerial, less technical operation. However, to implement a good security policy, decision makers must be aware of and have an in depth understanding of the available tools, threats from attackers and the organizational requirements. I would be very surprised if most vulnerabilities were as a direct result of technical issues rather than holes as a result of poorly designed and implemented security policies.
LEAP – Lightweight Extensible Authentication Protocol (according to most sources, becoming legacy to EAP-FAST)
EAP-TLS – Extensible Authentication Protocol – Transport Layer Security (A public key system for wireless lans using a RADIUS server)
PEAP – Protected Extensible Authentication Protocol – “PEAP is similar in design to EAP-TTLS, requiring only a server-side PKI certificate to create a secure TLS tunnel to protect user authentication“
RADIUS – Remote Authentication Dial In User Service
So, to start with there is a bag full of acronyms which are all interlinked.
There seem to be a few fundamental problems when securing wireless networks:
Devices connecting may have low computational power, ie: smart phones. (This is relative to desktops and servers so will most likely always be the case)
Incoming and outgoing packets are broadcasted thus easy to intercept
Users can be moving to between access points
Performance requirements are high, people expect wireless connections not to be slow than wired connections
These points combined force the situation of weaker security.
The detail of the lecture was in covering the different forms of handshakes and authentication that are floating around at the moment… and all of their flaws. It will take a fair bit of time to really become familiar with these.
I get the feeling that wireless security is always going to be an issue simply because of the computing power mismatch between mobile and fixed devices in addition to the broadcast nature of the communications. The advancement over the past 5 years does however show that the band-aid approach is sufficient to facilitate most of the world adopting wireless networks.
Week 6 completed the lecture on security in distributed programming. Dr. Le provided a summary of the key advantages associated with modern solutions provided by Java and CORBA. Given the wide variety of options and applications there is unfortunately no standard solution. Considering the large workload already provided by the subjects 3 assignments I have had little time to further investigate the alternatives.
I was having a look at some youtube videos to get a better feel for the key issues in this topic. A good one was from a GoogleTechTalk (see the channel: http://www.youtube.com/user/GoogleTechTalks):
Week 5 saw an introduction to security programming distributed applications. As I have very little experience in distributed programming it was difficult to understand everything covered in the lecture. The first question posed was, when developing a distributed program, which of the following is best for secure distributed programs:
Next came a discussion over the strengths and weaknesses of stateless and stateful servers.
The risk associated with multithread/process methods to deal with load became quite detailed. Analysis moved into the vulnerabilities of shared memory in operating systems, the most prominent being buffer overflows.
One of the key issues with using complex third party libraries is lack of confidence in the code. Many components in a distributed system will be written in C/C++ likely leading to vulnerabilities. We spent some to reading code to look for vulnerabilities, it seems that this will be an imperative skill for anyone pursuing a career in network security. Vulnerabilities in code range from buffer overflows, lack of sanitation allowing for injections, forced deadlocks and sharing of information between processes (ie: XSS).
After a review of some of the previous weeks discussion on ECC week 4’s lecture focused on Intrusion Detection Systems [IDS]. The initial slide of the lecture featured a great summary of IDS:
The concepts behind IDSs are not overly complicated; analyse incoming traffic, compare it to known bad traffic and take action accordingly. Unfortunately implementation of such a system is not so simple, some of the primary difficulties are:
To what extent can we generalize on bad.malicious traffic recognition?
How much time/computational resources can be spent on each incoming packet?
How can knowledge base and analysis engines communicate in real-time without slowing the network?
How can definitions/knowledge bases keep up with new exploits?
To help deal with these difficulties IDS systems are modularized into:
Host Based IDS [HIDS] – Examines all packets flowing through a network (ie: Tripwire, AIDE)
Network Based IDS [NIDS] – Examines process activity on a system, identifying malicious process behavior
Snort, the IDS we have been experimenting with in labs, was introduced in the lecture as an example of a NIDS. It strengths were identified as being an open-source option the is extremely fast and lightweight in comparison to it’s competition.
Week 3 of network security continued our introduction to Elliptic Curve cryptology. Specifically the mathematical operations and rationale behind this public key encryption method. At the moment I am implementing the RSA requirements for assignment 1 so did not get a chance to do much practical experiment with ECC. For me, understanding how the algorithms work can only be achieved by implementing them.
Given a group of elements [a,B]
Find the integer such that B = a ^ x
In this scenario it is relatively easy to compute B. However, given a and B, computing x is computationally expensive.
The operation of log(B,base a) to find x is not dissimilar in computational complexity to finding p and q given n (n = pq). Note that the logarithmic function is only particularly expensive in a discrete domain.
Moving from a definition of elliptic curves we related this to encryption.
Given an elliptic curve function and and infinite point O a set G can be established:
Take two points, P and Q and the intersect of the line PQ, is R -> P + Q = R (remembering these are co-ordinates).
For every P, P + (-P), a tangent on point P will intersect with -(R).
ECC operation definitions:
P + Q -> (-Xr) = s^2 – Xp – Xq, -(Yr) = s(Xp – Xr) – Yp
where s = (Yp – Yq) / (Xp – X q)
P + P (2P) -> (-Xr) = s^2 – 2Xp, Yr = s(Xp – Xr) – Yp
Of the two common elliptic curve families, Binary and Prime number curves, I will be focusing on Prime number curves as it is most relevant to our assignment requirements, and hopefully the most understandable.
As the field needs to be discrete, we defined a group (Zp, mod) = {0,1, p -1} where p is a prime number.
The elliptic field will be defined as y^2 = x^3 +ax + b mod p where a, b, y and x are all members of Zp.
Example:
p=11, Zp=Z(11) – > y^2 = x^3 + x + 6 (mod 11)
E (Z11, mod) = {(2,4),(2,7), (3,5),(3,6), (5,2),(5,9), (7,2),(7,9), (8,3),(8,8), (10,2),(10,9)}
The next step is to select a generate, say g = (2,7).
Using the operation defined above for P + P we can calculate a set of G, 2G ….nG:
Now, both parties know the elliptic curve and the generator g (2,7) -each party (lets say Alice and Bob) must now create a public key.
Alice generates a random number, say 2. Her public key becomes 2g (see the set above) -> (5, 2).
Bob also has a public key, random number say 3. His public key becomes 3g -> (8,3).
Alice wants to send the encrypted message -> (3,6)
Here is a major difference to the RSA algorithm. Instead of only using Bob’s public key to encrypt a message, Alice must use both Bo and her own public key.
So, to encrypt the message (3,6) for transmission to Bob, Alice must complete the following operation:
Again from the operations above P + Q is defined so lets turn P -Q -> (5,9) – (7,9) into P + Q -> (5,9) + (7, -9).
Which will output the message – (3,6)!
So, we can see that encryption and decryption is not that difficult in terms of operations. With that in mind how can we be sure that if we are transmitting our the elliptic curve, the generator and our publickey, an attacker can’t find our RandomNumber (which is in fact the private key).
The attacker will know:
Alices Public Key was found by taking the set generated using the Elliptice curve and generator (2, 7).
Her public key (Q) can be defined as -> Q = kP -> where k is here secret random number and P is the generator (2,7).
Finding k given Q and P is the equivalent of a Discrete Logarithm problem which as mentioned is computationally expensive.
As with my other subjects for week 2 I was absent for Adv. Network Security so this will be a summary of the lecture notes and reading materials. The title for this weeks lecture was ‘Adv. Cryptology, RSA and its implementation’. Considering the extensive assignment we completed last semester on PGP/GPG and it’s utilization of the RSA public key system, this will most likely be somewhat of a revision. I wrote a summary of the RSA system in that assignment which is will paraphrase below:
Generating Public and Private Keys (RSA):
Step 1: Generate two prime numbers
n = pq (let’s make p = 5 and q = 7)
5 * 7 = 35
n = 35
Step 2: Calculate the totient of n
φ(n) = (p – 1)(q – 1), φ is Euler's totient function
(5 - 1)(7 - 1)
φ(n) = 24
Step 3: Choose an integer, e, that is between 1 and φ(n) and co-prime with φ(n)
1 ,2 , 3 and 4 are not co-prime, however 5 is.
Let e = 5.
(e, n), (5, 35) is the public key.
Step 4: Using the public key and p*q (n), find the private key, d by finding the modular multiplicative inverse of e (mod(φ(n))
private key = (29, 35) The encryption process for RSA is as follows:
plaintext message = m, public key = (e, n)
m^e mod(n) = cypher-text
The decryption process follows as:
cypher-text message = c, private key = (d, n)
c^d mod(n) = plaintext message
Signing of documents can be done, ideally using a hash function, a private key and a trusted certificate for the public key:
plaintext message = m, public key = (e, n), private key = (d, n)
hashFunction(m)^d mod(n) = signature
A recipient can confirm the signature with the following process:
signature^e mod (n) = hashFunction(m)
The lecture notes explain these processes with much more correct mathematical notation, however this is the easiest way for me to express the process.
Also discussed in the lecture was a topic generating and tesing prime numbers. I did not complete strong analysis of ths process in the past semester. The Miller-Rabin test was introduced here. As per usual I find the easiest way to get my head around mathematical algorithms is not reviewing the mathematical proof/concept but by writing a script implementing the algorithm: http://mchost/sourcecode/Miller-Rabin.py
Week 1 of Adv network security to be lectured by Dr Phu Dung Le provided an introduction to the topics covered in the unit:
Modern computing and network security
Ellicptic curve public key encryption
Design and implementation of RSA and ECC
Intrusion detection systems
Network and distributed software security
Advance wireless security
Large computer security systems
Security, load balancing and network performance
Main research in security
The lecture broke off in to some very interesting discussion over information retrieval from encrypted data sources. The example provided seems like a one of case but this problem will become increasing relevant with the rise of cloud computing. For example, as large companies such as Sony find strong efficiency and financial motivators to outsource their data storage to cloud providers, encryption of that data is paramount. With a large, off site, encrypted data sources there are issue with the efficient retrieval of data and the point of decryption. For example:
If searching for similar images given and initial image, how can this be accomplished without downloading and decrypting the entire database?
When retrieving data, at what point does decryption occur, if at the client then all the incoming data will fly straight past firewall, intrusion detection systems and anti-virus software.
A paper proposing a solution where:
an encryption scheme where each authorised user in the system has his own keys to encrypt and decrypt data. The scheme supports keyword search which enables the server to return only the encrypted data that satisfies an encrypted query without decrypting it.
The problem of like image recognition is still not easily addressable using this solution. Although it could be argued that categorization schema could work effectively. I wonder at plausibility of using unsupervised neural networks in conjunction with the hash algorithm to provide a method not dependent on designer imposed categorization. Imagine the network would need to be infinitely complex to follow hashing however…
Installing and making a basic configuration for snort was the task. I am not a big fan of the red hat linux distro that we have access to in the tutorials so I complete the install of snort 2.9.0.5 along with snort report 1.3.1 on my home gateway. I used the latest dynamic rules from
It was also mentioned in the lecture that we would be investigating the RSA in comparison to Elliptic curve cryptology [ECC]. I had no idea what ECC was, a good video I found providing a brief explanation: