Security Policies and Procedures · Topic 5 of 7

Network and Server Profiling

Build network profiles from throughput, session duration, ports and critical asset address space, and server profiles from ports, users, processes, tasks.

  • 5 min
In a nutshell
  • A profile is a baseline of normal behaviour.
  • Network profiling uses throughput, session duration, ports used and critical asset address space.
  • Server profiling uses listening ports, users and service accounts, processes, tasks and applications.

What it is

Profiling records what normal looks like for a network or a server, so that abnormal activity stands out.

A profile is a baseline. Without one, a large transfer or a new open port is just a number, and with one it can be judged as normal or suspicious.

Network profiles describe traffic, and server profiles describe what runs on one machine.

Normal periodmeasure and recordformsBaselineprofile of normalcompared withCurrent activitytodaydifference raisesAlertinvestigate

How it works

Pick a few stable measurements, record them over time, and compare later activity with them.

Network profiling elements

ElementWhat it measuresWhy it matters
Total throughputThe amount of data crossing a link over timeA sudden rise may mean a flood or data theft, and a drop may mean an outage
Session durationHow long conversations lastVery long sessions can mean a hidden channel, and many very short ones can mean scanning
Ports usedThe ports and protocols seen in trafficA new port, or a service on an unusual port, can show an unapproved service or malware
Critical asset address spaceThe address ranges of the most important systemsLets you watch traffic to and from the assets that matter most

Total throughput is usually measured in bits per second or bytes per hour, and is best compared by time of day. A network has busy and quiet periods, so compare Monday morning with Monday morning.

Session duration looks at how long each connection lasts. A web browsing session is usually short. A session that lasts for hours between a server and an unfamiliar address stands out.

Ports used shows which services the network really uses. A profile might list the top ports and the share of traffic each carries.

Critical asset address space is the list of subnets that hold key assets, such as payment servers or databases. You can then write alerts such as any connection from the guest network to the critical range. Traffic to those addresses from unexpected places deserves attention.

Network profile data usually comes from NetFlow and similar records, since they hold addresses, ports, counts and durations.

Server profiling elements

ElementWhat it recordsA sign of trouble
Listening portsWhich ports accept connectionsA new listener that is not part of the service
Logged in users and service accountsWho is signed in, and which accounts run servicesA user at an odd hour, or a service account used interactively
Running processesWhich programs are runningAn unknown process or one running from a temporary folder
Running tasksScheduled jobs and startup tasksA new task that starts a script
ApplicationsThe software installed and in useUnapproved or outdated software
$ ss -tulnp
$ who
$ ps aux
$ crontab -l
$ dpkg -l

On Linux, these commands show listening ports, logged in users, processes, scheduled jobs for the current user and installed packages on Debian based systems. On Windows, netstat -ano, query user, tasklist, schtasks /query and the installed programs list give the same information.

A service account is an account used by a program, not by a person. It often has broad rights and a password that rarely changes, so attackers value it. An interactive login by a service account is unusual.

Using profiles

  1. Record the profile during normal operation and keep it updated as the environment changes.
  2. Compare current data with the profile on a schedule, or let a tool do it.
  3. Investigate each difference. It may be a legitimate change, such as a new application.
  4. Update the profile after a verified change.

For example, a web server profile lists ports 80 and 443 only. A later check shows a new listener on port 4444, and a process running from a temporary folder. The profile makes the change obvious, and it points to a backdoor.

What to remember for the exam

Seven facts cover most questions on this topic.

  • A profile is a baseline of normal behaviour.
  • Network profiling uses throughput, session duration, ports used and critical asset address space.
  • Server profiling uses listening ports, users and service accounts, processes, tasks and applications.
  • A new listening port on a server is a warning sign.
  • Compare like with like, such as the same time of day.
  • Critical asset address space lets you watch traffic to the most important systems.
  • Update the profile after a legitimate change.
Exam tip

Throughput, duration, ports and critical addresses describe the network. Ports, users, processes, tasks and apps describe a server.

Common mistakes

These four errors appear often.

Profiling for too short a time. A baseline needs to cover busy and quiet periods.

Never updating the profile. Legitimate change then looks like an attack.

Ignoring service accounts. They are powerful and often poorly watched.

Comparing different time periods. Compare similar days and times.

Note

A difference from the profile is a reason to look, and it is not proof of an attack.

Check yourself

Work through these three questions.

  • What are the four elements of a network profile?

    Total throughput, session duration, ports used and critical asset address space.

  • What would a new listening port on a web server suggest?

    It suggests an unapproved service or a backdoor, since the profile lists only the expected ports.

  • Why compare traffic with the same time of day?

    Networks have busy and quiet periods, so only a like for like comparison shows a real change.

Topic 5 of 7 in Security Policies and Procedures

Test yourself on Security Policies and Procedures

The full Cisco CCNA 200-201 CBROPS question bank has 754 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by Cisco. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.