<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>B. Bouhlal);</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>User-agent as a Cyber Intrusion Artifact: Detection of APT Activity using minimal Anomalies on the User-agent String Trafic</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Badr-Eddine Bouhlal</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tim Sonnekalb</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Bernd Gruner</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Clemens-Alexander Brust</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>German Aerospace Center (DLR), Institute of Data Science Jena</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0002</lpage>
      <abstract>
        <p>The detection of attacks, especially persistent intrusions, relies on a combination of various artifacts. Despite being manipulable, the user-agent string, a component of HTTP headers, has proven to be a tool for triggering alerts, thereby enhancing detection capabilities. In this paper, we perform a review and analysis of existing malicious user agent strings. We gather relevant data from diferent sources of threat intelligence and present a dataset of user-agent strings associated with malicious activities gathered from real incident reports. We also propose a categorization of existing user-agent string anomalies with respect to their type (e.g., syntax) and their complexity degree.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;User-agent string (UAS)</kwd>
        <kwd>Advanced persistent threat (APT)</kwd>
        <kwd>Intrusion detection</kwd>
        <kwd>Machine learning</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        that can be detected by using multiple identification factors, such as multiple authentication
attempts with diferent UASs from the same IP addresses [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>
        An anomaly may appear in several forms, and a malformed UAS can have multiple
explanations: indicate the use of a vulnerability scanning tool (T1595 - Active Scanning) [
        <xref ref-type="bibr" rid="ref2 ref3">2, 3</xref>
        ], or be the
sign of data exfiltration in the form of a legitimate string. It can also serve as a communication
channel between malware and a command and control server (command and control attack).
Communication via the application layer protocol is associated with several techniques used by
APT groups attempting to exploit vulnerabilities in the HTTP/HTTPS protocol [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>
        Challenges. The UAS does not follow a general format. While RFC 7231 [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] defines a general
format for the presentation of the UAS many benign applications do not adhere to it [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. This
variability in UAS representation makes it dificult to conceive universal classification rules
that remain efective over time. This situation presents significant challenges in diferentiating
legitimate UAS from malicious ones, as both representations initially consist of sequences
of characters, numbers, and special characters. Another issue that arises when considering
automation is determining the impact of irregular and sometimes anomalous user-agent that
may not necessarily represent a threat which may increase the number of false alarms.
      </p>
      <p>
        To the best of our knowledge, no dataset containing user-agent strings associated with
malicious activity and presenting a detection artifact has been published. In addition, all
existing studies concerning the detection of malicious trafic from user agents are mainly
based on analysis of the network trafic, due to the absence of a malicious user-agent set. We
summarize the key contributions of this paper as follows:(1) We introduce a dataset that consists
of a collection of 1063 malicious UASs, which is publicly available under a CC-BY 4.0 License
[
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], (2) we perform a review and analysis of existing malicious UASs, and (3) we propose a
categorization of the diferent UAS anomalies.
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Related Work</title>
      <p>
        In this section, we will present a series of studies that have focused on the user-agent string.
Almost all of these studies aim to develop methods for distinguishing regular user-agent strings
from malicious ones. Their approaches focus on developing parsing methods to make this
distinction. However, we have noticed that they use data that cannot be directly linked to malicious
trafic (a public database for this purpose does not exist, as far as we know). Furthermore, they
focus mainly on syntax errors and do not consider cases of rarity. This rarity can hide minimal
anomalies that are dificult to distinguish using a syntax parser, such as fake information, e.g.,
the pattern of the user-agent is correct, but the version of the browser used is fake. Zhang et al.
[
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] examined the UASs in malicious trafic, specifically malware. The authors found that one
out of every eight instances of malware trafic contained suspicious user-agent in at least one
of their HTTP requests. Currently, user-agent are still being analyzed manually. However, the
analysis showed that there are multiple patterns that could be used to automatically classify
user-agent anomalies. They also propose an automated technique for extracting user-agent
anomalies and creating signatures for malware detection.
      </p>
      <p>
        Kheir [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] applied a rule-based methodology using regular expressions for distinguishing
abnormal and normal user-agent based on the fact that user-agent have a general and fixed
structure that enables their validation using regular expressions. The data used during this
research was collected over two months from real trafic and contained 150 billion user-agent.
Zhang et al. [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] stated that the causes of anomalies could be due to two factors, namely a
malfunction during the encoding decoding of the user-agent or a malicious activity.
      </p>
      <p>
        Zhang et al. [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] used a method that combines several steps to classify user-agent: firstly, it
uses a parser based on a context-free grammar to classify them based on their representation, a
standard UAS, a non-standard representation for non-standard UAS, and finally, for unrecognized
representations. Then, the authors propose using an anomaly detection algorithm to separate
benign UAS from malicious ones. Their study compared the Context-Free Grammar (CFG) with
the User Agent parser based on regular expressions. They showed that the CFG is better suited
for analyzing user-agent trafic due to its ease of adaptation and simplicity of comprehension.
      </p>
      <p>
        Nandakumar et al. [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] presented a novel method of parsing the user-agent strings based on
Multi-Headed Attention mechanism using transformer, the method is divided into two-step,
ifrst parse the UAS to gather the information related to the device and software, then correlate
the extracted information with known related Common Vulnerabilities and Exposures (CVE).
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Illustrative Incidents: Malicious User-Agent Case Studies</title>
      <p>
        Cyber-attacks, especially those carried out for espionage purposes, are designed to persist
without being detected in the network. Performed by well-trained teams (APTs) using complex
methods and sometimes over several well-planned stages, these attacks are not necessarily easy
to analyze and sometimes dificult to determine their consequences at first glance. However,
every potential indicator of malicious activity on the network must be carefully analysed and
considered. These indicators, also known as network artifacts, can vary from an IP address, an
URI pattern or an UAS that has not previously been observed in a defined network environment,
or one that appears to be out of the ordinary [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. In this section, we provide a concise overview
of some incident reports from cyber-attack campaigns, specifically focusing on cases where
the UAS field deviates from the norm. This divergence serves as a crucial factor in uncovering
potential threats within the network. We perform this review of real incident to be able to
analyse the type of anomalies that can be considered as artifacts of detection within the UAS
(cf. Subsection 3.2 ), and also to perform a categorization of them (cf. Subsection 4.2 ).
      </p>
      <sec id="sec-3-1">
        <title>3.1. Real-life Incidents</title>
        <p>
          Targeted Phishing Exploits Impacting Japanese and Taiwanese Organizations [
          <xref ref-type="bibr" rid="ref12 ref13">12, 13</xref>
          ].
APT groups have launched a mail fishing campaign with malicious word attachments targeting
governmental organizations, finance, media, and high-tech sectors in Japan and Taiwan. The
attack exploits a Microsoft Ofice EPS vulnerability CVE-2015-1701 [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ], the exploit payload
releases a binary, that includes an embedded sample of the IRONHALO malware. IRONHALO
uses the HTTP protocol to fetch the payload from a command-and-control (C&amp;C) server with
hard-coded settings and a specific Uniform Resource Locator (URL) path [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ]. This malware
variant sends an HTTP request to a legitimate Japanese site with a malformed UAS with a
syntax error: missing space between the diferent components of the UAS as shown in Figure 1a.
GET /syougyou/images/index.php HTTP/1.1
Accept: */*
User-Agent: Mozilla/4.0(compatible;MSIE 8.0;Windows NT 6.1)
Connection: Keep-Alive
Host: www.&lt;redacted&gt;[.]com
Cache-Control: no-cache
        </p>
        <p>Registry Keys:</p>
        <p>HKLM\System\CurrentControlSet\Services\bmwappushservice
URLs:
https//is-cdn.edge.g18.dyn.usr-e12-as.akamaitechnology[.Jcom/deploy/assets/css/main/style.min.css
http://a17-h16.911.iad17.as.pht-external.c15.qoldenlines]. Jnet/deploy/assets/css/main/style.min.css
HTTP“Uasretirf-aAcgtse:nt : XXXXXXXXXXXXXXXXX/5.0 (Windows NT 6.1 WOW64; Trident/7.0; AS; rv:11.0) like Gecko"</p>
        <p>"Proxy-Authorization : Basic [Data]" ~ [Data] Will contain the TDTESS encrypted data to send</p>
        <p>
          CopyKittens [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ]. A cyber espionage group that mainly targets strategic organizations
such as governmental organizations (defense companies, research institutions, Ministry of
defense, and large IT companies), using self-developed tools that are not necessarily publicly
reported. The methods of attack are complex and varied. The report [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ] describes the intrusion
methodology and also a set of used malware’s, for example, the TDTESS which is a 64-bit .
NET binary backdoor that communicates regularly with the command and control server, using
basic authentication to receive new instructions. The incident analysis report presents various
Indicators of compromise, among which is a malformed UAS [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ], as shown in Figure 1b.
        </p>
        <p>
          Russian GRU Conducting Global Brute Force Campaign to Compromise Enterprise
and Cloud Environments [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ]. Between mid-2019 and 2021, the Russian General Staf Main
Intelligence Directorate (GRU) 85th Main Special Service Center (GTsSS), also known as Fancy
Bear or APT28, used the Kubernetes cluster to launch large-scale anonymous brute force access
attacks against government and private sector organizations, exploiting the CVE 2020-0688 and
CVE 2020-17144 vulnerabilities in Microsoft Exchange, they used several protocols including
HTTP. The campaign report publicly released by the NSA encompasses a detailed description of
the techniques and tactics used as well as mitigation and detection methods including IP address
lists and UASs, which "are crafted to appear consistent with those sent by legitimate client software.
Some of the UASs delivered in the authentication requests are incomplete or truncated versions of
legitimate UASs, ofering the following unique detection opportunities [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ]" (cf. Figure 1c) .
        </p>
        <p>
          Bumblebee loader [
          <xref ref-type="bibr" rid="ref16 ref17">16, 17</xref>
          ]. A malware, employed in various campaigns by numerous
threat actors, uses the Windows Management Instrumentation (WMI) framework to extract
system details. Then, it establishes a connection with the C&amp;C server at intervals of 25 seconds
to receive commands to be execued. Logpoint [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ] proposes two detection techniques within
the proxy log files. Malware detection in the proxy log might be done either using the user
agent and/or the URI. Hence, any existence of a user agent that matches the string bumblebee is
a strong sign of the persistence of this malware. Other versions of the malware uses diferent
evasion techniques and might change the UAS. An undefined UAS with the same number of
digits should also be suspicious and might refer to the persistence of bumblebee [
          <xref ref-type="bibr" rid="ref16 ref17">16, 17</xref>
          ].
        </p>
        <p>
          LYCEUM middle east campaign [
          <xref ref-type="bibr" rid="ref18">18</xref>
          ]. An APT group that targets organizations in strategic
sectors, including oil and gas. Campaigns were reported in South Africa in 2018 and in the
Middle East in 2019. The group primarily uses password-sparing or brute-force attacks to
gain access to an organization to obtain credentials. Then, using compromised accounts, they
send spearphishing emails containing malicious attached Excel files containing the Danbot
malware. Danbot malware is a first-stage access trojan (RAT) that uses DNS and the HTTP
protocol for communication. The Danbot HTTP request contains two anomalies: An ampersand
(&amp;) after operating system values in the UAS (Mozilla/5.0 (Windows NT 10.0;
&amp;) Gecko/20100101 Firefox/64.0), and a misspelling of ’Encoding’ in the
acceptencoding header [
          <xref ref-type="bibr" rid="ref18">18</xref>
          ].
        </p>
        <p>
          Quasar: Open-Source Remote Administration Tool [
          <xref ref-type="bibr" rid="ref19">19</xref>
          ]. Is a RAT open source used for
Windows Operating systems, hosted publicly on GitHub, specially dedicated for being used for
legitimate purposes. In addition, various APT threat groups are using Quasar to conduct cyber
espionage campaigns. Quasar enables remote control, keylogging, file transfer and enables the
user to collect information about the host system. During the client connection’s setup, the
client tries to determine its geolocation, including its Wide Area Network (WAN) IP address.
This is achieved by sending an HTTP GET request to the Uniform Resource Locator (URL)
ip-api[.]com/json/ with the following User-Agent string: Mozilla/5.0 (Windows
NT 6.3; rv:48.0) Gecko/20100101 Firefox/48.0. "This User-Agent string
mimics a Mozilla Firefox 48 browser running on Windows 8.1. This User-Agent string would likely
stand out as unique in a corporate network environment, and its presence could be a high-confidence
indication of Quasar activity" as stated by the Cybersecurity and Agency [
          <xref ref-type="bibr" rid="ref19">19</xref>
          ].
        </p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Analysis of the Incidents</title>
        <p>By analyzing the various real incidents presented in the previous section, we note that the
irregularities in the HTTP trafic (in our case, UASs), represents especially syntax errors or
rarity of occurrence, represent a serious sign of a potential threat.</p>
        <p>
          Indeed, UAS patterns vary significantly and do not necessarily follow a general structure
that could be generalized to all device types (software, hardware). However, some syntax
anomalies could represent a "red flag" and should be carefully examined. These syntax errors
vary from grave errors, where the user-agent does not match any pattern of a correct UAS, to
non-defined strings, as in the case of Bumblebee, or the TeamTNt group, where they use the UAS
ifeld to execute an injection code operation curl –referer $REFERER –user-agent
TNTcurl $CURLPARA $GETFROM -o $PUTITTO [
          <xref ref-type="bibr" rid="ref20">20</xref>
          ]. Another example of using the
UAS as a tool of code injection is the recent exploit of the Log4j vulnerability by the APT35 [
          <xref ref-type="bibr" rid="ref21">21</xref>
          ].
In addition we mention also syntax errors such as misspellings, absences, or even the existence
of strings that should not exist in the correct UAS (as in the cases of CopyKittens and LYCEUM).
        </p>
        <p>
          Another category of anomalies concerns not the syntax of the UAS, where it may be completely
accurate, but the existence of a rare UAS, that can be suspicious especially in corporate networks.
The detection of such anomalies depends on the analysis of the overall trafic, whereas a simple
analysis of the syntax would not allow the detection, as in the case of Quasar malware and
Fancy Bear (APT28). A rule-based detection method based on syntax would not be useful
for the detection of fake UASs. The latter may take the form of a syntactically correct UAS.
However, with a fake browser version, for example, the Metamorfo [
          <xref ref-type="bibr" rid="ref22">22</xref>
          ] malware uses a UAS
with Mozilla/3. 0, the existence of such a version 3.0 must be suspicious.
        </p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Dataset Construction</title>
      <p>In this section we present the construction process of our dataset of UASs associated with
malicious trafic, focusing on attacks related to APTs. An essential part of building this dataset
is categorizing anomalies in UASs.</p>
      <sec id="sec-4-1">
        <title>4.1. Data Sources and Data Collection</title>
        <p>
          For creating the dataset, we relied on diferent sources. Firstly, security reports on real incidents
(cf. Subsection 3.1) which are collected by reputable organizations such as MITRE ATT@CK
[
          <xref ref-type="bibr" rid="ref23">23</xref>
          ] and the Cybersecurity and Infrastructure Security Agency (CISA) [
          <xref ref-type="bibr" rid="ref24">24</xref>
          ]. These reports
permit valuable insights into the latest cyber threats, ofering detailed information on tactics,
techniques, and procedures (TTPs) employed by malicious actors. The second source of our
data consisted of contributions published by security professionals and experts in security blogs
and community forums, for example, Microsoft [
          <xref ref-type="bibr" rid="ref25">25</xref>
          ] and Cisco Talos [
          <xref ref-type="bibr" rid="ref26">26</xref>
          ]. Subsequently, the
UASs identified as artifacts of malicious activity were obtained from the Sigma open-source
rules. These entries are regularly identified and logged as part of blacklists 1. In addition, the
dataset includes data gathered from the open-source project Apache Bad Bot Blocker 2.
        </p>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. User-Agent String Anomaly Categorization</title>
        <p>Our categorization encompasses a wide range of anomalies observed in UASs, based on analyzing
anomalies related to real-life incidents, we define the following two main categories.</p>
        <sec id="sec-4-2-1">
          <title>4.2.1. The type of anomalies</title>
          <p>The anomaly type, can be used as a detection hint and for this we define three diferent cases:</p>
          <p>
            Syntax errors. These are the syntax anomalies that can be distinctive in a user-agent, for
example, the missing space in the case of IRONHALO or the existence of an invalid string part, as
is the case with CopyKittens [
            <xref ref-type="bibr" rid="ref14">14</xref>
            ] (XXXXXXXXXXXXXXXX/5.0 instead of Mozilla/5.0).
In this case, the UAS has a correct pattern (format) but contains syntax errors.
          </p>
          <p>Unknown string. In this category, we will classify all UASs that do not contain any pattern
or part of a pattern of a correct UAS. These UASs are a collection of random strings (characters,
digit or special characters) and may contain the name of the malware itself or any other string
like the bumblebee for example.
1Sigma - Generic Signature Format for SIEM Systems:https://github.com/SigmaHQ/sigma#
sigma---generic-signature-format-for-siem-systems
2Apache ultimate bad bot blocker https://github.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/tree/master</p>
          <p>Other. This category contains UASs without syntax anomaly, but are associated with a
malware, APTs, or other malicious activities. Intrusion detection from these user agents may be
due to their rarity in the trafic. They may stand out as anomalous in network trafic because of
their rarity, or simply because their signatures should not exist in the specific network trafic.</p>
        </sec>
        <sec id="sec-4-2-2">
          <title>4.2.2. The anomaly complexity degree</title>
          <p>The second classification criterion distinguishes between high anomalies and low anomalies.
This criterion is designed to evaluate the expected ability of a machine learning model to detect
anomalous UASs at two levels of dificulty: the detection of a user-agent that difers totally
syntactically from a normal pattern, and between the detection of a simple syntax anomaly.
The two categories are defined as follows:</p>
          <p>Low anomaly. Low anomaly formats represent user agent strings with minor or subtle
deviations from normal (standard) formats. These may be a small syntax error, missing
components, or the presence of unknown elements in an otherwise normal structure, as in the case of
IRONHALO, where the anomaly is a missing space. In this category, we also include the UASs
previously classified as Other.</p>
          <p>
            High anomaly. Formats or patterns involving irregular, unusual, or entirely new structures
in user agent strings that deviate significantly from regular formats. These anomalies can include
random unknown strings, special characters, or unique identifiers with no correspondence with
known, legitimate user agents, like the example of the bumblebee, where the string bumblebee
do not represent a legitimate (or a part of) UAS. Another example is: sample (unknown
version) CFNetwork/596.5 Darwin/12.5.0 (x86_64) (iMac8%2C1) [
            <xref ref-type="bibr" rid="ref27">27</xref>
            ], which includes
many syntax errors and deviates systematically from a normal UAS. This UAS exhibits several
anomalous characteristics, including elements like sample (unknown version). Additionally,
the presence of the identifier (iMac8%2C1) does not correspond to known UAS or a part of a
legitimate UAS and the percentage sign is not typically part of a standard UAS.
          </p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Dataset Description and Usage</title>
      <p>Description. During data collection, we systematically inspect malicious UASs and collect
additional information: The type of anomaly, the degree of complexity, the APT associated with
the malicious UAS, if the information is available, the sources (e.g., citations of the resources from
where the UAS was gathered), and the string pattern that distinguishes between two cases: if
the abnormal UAS matches the entire string (match_string) or if it involves a regular expression
(regx). The Regular expression describes a string part that might be included in a syntactically
correct UAS but might be a sign of malicious activities. The data is provided in a CSV format,
each row represents a UAS with corresponding information. Table 1 depicts an example of the
dataset structure and Table 2 shows the distribution of the malicious UASs per category.</p>
      <p>Usage. The dataset contains two types of UAS entries that must be treated diferently:
match_string, which represents malicious UASs that can be used directly, and regx, which
presents only string parts which must be applied to correct UASs to generate malicious ones,
these regular expressions define the potential location of these parts within a correct UAS. In
addition to the set of malicious UASs (abnormal), we provide a set of 1000 of the most frequently</p>
      <p>UAS
UAS-1</p>
      <p>Anomaly Type Anomaly Complexity Related Apt
syntax error low APT34</p>
      <p>
        Ressources String Pattern
URL of document/online resources match_string
seen user agents during November 2023, parsed by the Whatismybrowser API parser 3. These
1000 entries will be considered as a reference for normal user agents, containing no syntax
anomalies. This allows using the dataset to train/test machine learning models on the detection
of malicious UASs. We performed a similarity check between the two sets (normal and abnormal),
and we noticed that there are eight common entries. An example entry is the malicious UAS
representing the pattern used by the Google’s bot crawler Mozilla/5.0 (compatible;
Googlebot/2.1; +http://www.google.com/bot.html), normally legitimately
used for indexing purposes. The explanation for this finding is the fact that some malwares use
complicated evasion techniques and they might use the most common and widely used UAS
patterns. Moreover, some malwares mimics the UAS of the system on which it is installed to
blend into the network trafic and avoid to be detected, as in the case of the FatDuke malware
used by APT29, also known as Cozy Bear [
        <xref ref-type="bibr" rid="ref28">28</xref>
        ]. Such UASs fall under the category Other, where
the UAS does not exhibit any syntax errors. However, the detection artifacts might be due to
their rarity of existence within a trafic of legitimate UASs. Another example is the Quasar
malware that uses a legitimate UAS that mimics a Mozilla Firefox 48 browser running on Windows
8.1, which could be suspicious, especially in corporate networks [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ].
      </p>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusion and Future Work</title>
      <p>This study highlights the significant role of the UAS as an indicator of attack detection, and
especially persistent intrusions. We present a dataset of 1063 UAS associated with malicious
activities, the majority of which were collected manually from real incident reports. These
UASs exhibit anomalies in syntax or other aspects, providing a basis for detecting persistent
activities within network trafic. As future work, we plan to further extend the dataset and use
it as training and test set to evaluate diferent machine learning models on their capabilities to
automatically detect anomalies related to UASs.
3Whatismybrowser https://www.whatismybrowser.com/</p>
    </sec>
    <sec id="sec-7">
      <title>Acknowledgments</title>
      <p>We extend our sincere gratitude to Whatismybrowser, Raape, Ulrich and Möbius, Max for their
invaluable assistance in collecting UASs for this study.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <article-title>[1] Cybersecurity and Infrastructure Security Agency (CISA), Cybersecurity advisory: Impacket and exfiltration tool used to steal sensitive information from defense industrial base organization</article-title>
          ,
          <year>2022</year>
          . URL: https://www.cisa.gov/news-events/cybersecurity-advisories/ aa22-277a,
          <source>accessed: April</source>
          <volume>15</volume>
          ,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <article-title>[2] Center for Threat-Informed Defense, Microsoft azure security control mappings to mitre att</article-title>
          &amp;ck®,
          <year>2023</year>
          . URL: https://center-for
          <article-title>-threat-informed-defense.github.io/ security-stack-mappings/Azure/README</article-title>
          .html,
          <source>accessed: April</source>
          <volume>20</volume>
          ,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>M.</given-names>
            <surname>Attck</surname>
          </string-name>
          , Active scanning,
          <year>2022</year>
          . URL: https://attack.mitre.org/techniques/T1595/, accessed: April 20,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>M.</given-names>
            <surname>Attck</surname>
          </string-name>
          , Application layer protocol: Web protocols,
          <year>2020</year>
          . URL: https://attack.mitre.org/ versions/v7/techniques/T1071/001/, accessed: April 21,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>R. T.</given-names>
            <surname>Fielding</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. F.</given-names>
            <surname>Reschke</surname>
          </string-name>
          ,
          <article-title>Hypertext transfer protocol (http/1.1): Semantics and</article-title>
          content,
          <year>2014</year>
          . URL: https://www.rfc-editor.
          <source>org/rfc/rfc7231, accessed: April</source>
          <volume>11</volume>
          ,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Mekky</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.-L.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Torres</surname>
          </string-name>
          , S. ju
          <string-name>
            <surname>Lee</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Tongaonkar</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Mellia</surname>
          </string-name>
          ,
          <article-title>Detecting malicious activities with user-agent-based profiles</article-title>
          ,
          <source>International Journal of Network Management</source>
          <volume>25</volume>
          (
          <year>2015</year>
          )
          <fpage>306</fpage>
          -
          <lpage>319</lpage>
          . URL: https://api.semanticscholar.org/CorpusID:13959125.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>B.-E.</given-names>
            <surname>Bouhlal</surname>
          </string-name>
          ,
          <article-title>Dataset of malicious user-agent strings</article-title>
          ,
          <year>2024</year>
          . URL: https://doi.org/10.5281/ zenodo.10700806. doi:
          <volume>10</volume>
          .5281/zenodo.10700806.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>N.</given-names>
            <surname>Kheir</surname>
          </string-name>
          ,
          <article-title>Behavioral classification and detection of malware through http user agent anomalies</article-title>
          ,
          <source>Journal of Information Security and Applications</source>
          <volume>18</volume>
          (
          <year>2013</year>
          )
          <fpage>2</fpage>
          -
          <lpage>13</lpage>
          . URL: https: //www.sciencedirect.com/science/article/pii/S2214212613000331. doi:https://doi.org/ 10.1016/j.jisa.
          <year>2013</year>
          .
          <volume>07</volume>
          .006, sETOP'2012 and
          <article-title>FPS'2012 Special Issue</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Mekky</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.-L.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Torres</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.-J.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Tongaonkar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Mellia</surname>
          </string-name>
          ,
          <article-title>Detecting malicious activities with user-agent-based profiles</article-title>
          ,
          <source>International Journal of Network Management</source>
          <volume>25</volume>
          (
          <year>2015</year>
          )
          <fpage>306</fpage>
          -
          <lpage>319</lpage>
          . URL: https://onlinelibrary.wiley.com/doi/abs/10.1002/nem.
          <year>1900</year>
          . doi:https://doi.org/10.1002/nem.
          <year>1900</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>D.</given-names>
            <surname>Nandakumar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Murli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Khosla</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Choi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Rahman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Walsh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Riede</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Dull</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Bowen</surname>
          </string-name>
          ,
          <article-title>A novel approach to user agent string parsing for vulnerability analysis using mutli-headed attention</article-title>
          ,
          <year>2023</year>
          . arXiv:
          <volume>2306</volume>
          .
          <fpage>03733</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>CSNP</surname>
          </string-name>
          , Tryhackme - pyramid
          <source>of pain room, Dec</source>
          <volume>5</volume>
          ,
          <year>2022</year>
          . URL: https://www.csnp.org/post/ tryhackme
          <article-title>-pyramid-of-pain-room</article-title>
          ,
          <source>accessed: on: [02.01</source>
          .
          <year>2024</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>R. W.</given-names>
            <surname>Genwei</surname>
          </string-name>
          <string-name>
            <surname>Jiang</surname>
          </string-name>
          , Dan Caselden,
          <source>The eps awakens</source>
          ,
          <year>2015</year>
          . URL: https: //web.archive.org/web/20170613151054/https://www.fireeye.com/blog/threat-research/
          <year>2015</year>
          /12/the_eps_awakens.html, accessed: [
          <volume>15</volume>
          .
          <fpage>12</fpage>
          .
          <year>2023</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>F. T. I. Ryann</given-names>
            <surname>Winters</surname>
          </string-name>
          ,
          <source>The eps awakens - part 2</source>
          ,
          <year>2015</year>
          . URL: https://web.archive. org/web/20151226205946/https://www.fireeye.com/blog/threat-research/
          <year>2015</year>
          /12/ the-eps
          <article-title>-awakens-part-two</article-title>
          .html, accessed: [
          <volume>15</volume>
          .
          <fpage>12</fpage>
          .
          <year>2023</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>C. C.</given-names>
            <surname>Security</surname>
          </string-name>
          , Operation wilted tulip,
          <year>2017</year>
          . URL: https://www.clearskysec.com/ wp-content/uploads/2017/07/Operation_Wilted_Tulip.pdf, accessed: [
          <volume>15</volume>
          .
          <fpage>12</fpage>
          .
          <year>2023</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <surname>Cybersecurity</surname>
            ,
            <given-names>I. S.</given-names>
          </string-name>
          <string-name>
            <surname>Agency</surname>
          </string-name>
          ,
          <article-title>Russian gru conducting global brute force campaign compromise enterprise and cloud environments</article-title>
          ,
          <year>2021</year>
          . URL: https: //media.defense.gov/2021/Jul/01/2002753896/-1/-1/1/CSA_GRU_GLOBAL_BRUTE_ FORCE_CAMPAIGN_
          <fpage>UOO158036</fpage>
          -
          <lpage>21</lpage>
          .PDF, accessed on [
          <volume>18</volume>
          .
          <fpage>12</fpage>
          .
          <year>2023</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <surname>Logpoint</surname>
          </string-name>
          ,
          <article-title>Buzz of the bumblebee - a new malicious loader</article-title>
          , https://www.logpoint.com/wpcontent/uploads/2022/05/buzz
          <article-title>-of-the-bumblebee-a-new-malicious-loader-threat-reportno-3</article-title>
          .pdf,
          <year>2022</year>
          . Accessed on [
          <volume>18</volume>
          .
          <fpage>12</fpage>
          .
          <year>2023</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>K.</given-names>
            <surname>Merriman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Trouerbach</surname>
          </string-name>
          ,
          <article-title>This isn't optimus prime's bumblebee but it's still transforming</article-title>
          ,
          <source>April</source>
          <volume>28</volume>
          ,
          <year>2022</year>
          . URL: https://www.proofpoint.com/us/blog/threat-insight/ bumblebee-is-still-transforming,
          <source>accessed on [18.12</source>
          .
          <year>2023</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <surname>Secureworks</surname>
          </string-name>
          ,
          <article-title>Lyceum takes center stage in middle east campaign</article-title>
          ,
          <year>2019</year>
          . URL: https://www. secureworks.com/blog/lyceum
          <article-title>-takes-center-stage-in-middle-east-campaign</article-title>
          ,
          <source>accessed: on: [02.01</source>
          .
          <year>2024</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <surname>Cybersecurity</surname>
            ,
            <given-names>I. S.</given-names>
          </string-name>
          <string-name>
            <surname>Agency</surname>
          </string-name>
          ,
          <string-name>
            <surname>Quasar</surname>
          </string-name>
          open-source
          <source>remote administration tool</source>
          ,
          <year>2019</year>
          . URL: https://www.cisa.gov/news-events
          <source>/analysis-reports/ar18-352a, accessed on [18.12</source>
          .
          <year>2023</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>David</given-names>
            <surname>Fiser</surname>
          </string-name>
          and
          <string-name>
            <given-names>Alfredo</given-names>
            <surname>Oliveira</surname>
          </string-name>
          ,
          <article-title>Tracking the Activities of TeamTNT: A Closer Look at Cloud-Focused Malicious Actor Group,</article-title>
          . URL: https://documents.trendmicro.com/assets/ white_papers/wp
          <article-title>-tracking-the-activities-of-teamTNT.pdf</article-title>
          ,
          <source>Accessed on: [18.12</source>
          .
          <year>2023</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21] C.
          <article-title>point, Apt35 exploits log4j vulnerability to distribute new modular powershell toolkit</article-title>
          , https://research.checkpoint.com/
          <year>2022</year>
          /apt35
          <article-title>-exploits-log4j-vulnerability-todistribute-new-modular-powershell-</article-title>
          <string-name>
            <surname>toolkit</surname>
            <given-names>/</given-names>
          </string-name>
          ,
          <year>2022</year>
          . Accessed on: [
          <volume>18</volume>
          .
          <fpage>12</fpage>
          .
          <year>2023</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <surname>Xiaopeng</surname>
            <given-names>Zhang</given-names>
          </string-name>
          , Another Metamorfo Variant Targeting Customers of Financial Institutions, https://www.fortinet.com/blog/threat-research/
          <article-title>another-metamorfo-varianttargeting-customers-of-financial-</article-title>
          <string-name>
            <surname>institutions</surname>
          </string-name>
          ,
          <year>2020</year>
          . Accessed on: [
          <volume>18</volume>
          .
          <fpage>12</fpage>
          .
          <year>2023</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          [23]
          <string-name>
            <given-names>M.</given-names>
            <surname>Corporation</surname>
          </string-name>
          ,
          <string-name>
            <surname>MITRE ATTCK</surname>
          </string-name>
          , Accessed: on: [
          <volume>02</volume>
          .
          <fpage>01</fpage>
          .
          <year>2024</year>
          ]. URL: https://attack.mitre.org/.
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          [24]
          <article-title>Cybersecurity and Infrastructure Security Agency (CISA), CISA</article-title>
          , Accessed: on: [
          <volume>02</volume>
          .
          <fpage>01</fpage>
          .
          <year>2024</year>
          ]. URL: https://www.cisa.gov/.
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          [25]
          <string-name>
            <surname>Microsoft</surname>
            <given-names>Corporation</given-names>
          </string-name>
          , Microsoft Security Blog,
          <source>Accessed February</source>
          <year>2024</year>
          . URL: https: //www.microsoft.com/en-us/security/blog/.
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          [26]
          <string-name>
            <surname>Cisco</surname>
            <given-names>Talos</given-names>
          </string-name>
          , Cisco Talos Blog,
          <source>Accessed February</source>
          <year>2024</year>
          . URL: https://blog.talosintelligence. com/.
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          [27] Unit 42
          <string-name>
            <given-names>Palo</given-names>
            <surname>Alto</surname>
          </string-name>
          <string-name>
            <surname>Networks</surname>
          </string-name>
          ,
          <source>Unit</source>
          <volume>42</volume>
          :
          <article-title>Xagentosx - sofacy's xagent macos tool</article-title>
          ,
          <year>2017</year>
          . URL: https://unit42.paloaltonetworks.com/unit42-xagentosx
          <article-title>-sofacys-xagent-macos-tool/</article-title>
          , accessed: on: [
          <volume>19</volume>
          .
          <fpage>02</fpage>
          .
          <year>2024</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref28">
        <mixed-citation>
          [28]
          <string-name>
            <surname>T. D. ESET: Matthieu</surname>
            <given-names>Faou</given-names>
          </string-name>
          , Mathieu Tartare,
          <article-title>Operation ghost the dukes aren't back they never left</article-title>
          ,
          <year>2019</year>
          . URL: https://web-assets.esetstatic.com/wls/2019/10/ESET_Operation_ Ghost_Dukes.pdf, accessed: on: [
          <volume>05</volume>
          .
          <fpage>01</fpage>
          .
          <year>2024</year>
          ].
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>