<!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 />
    <article-meta>
      <title-group>
        <article-title>Content Security and Privacy Preservation in Social Networks through Text Mining</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>José María Gómez Hidalgo</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>José Miguel Martín Abreu</string-name>
          <email>jabreu@optenet.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Pablo García Bringas</string-name>
          <email>pablo.garcia.bringas@deusto.es</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Igor Santos Grueiro</string-name>
          <email>isantos@deusto.es</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Optenet</institution>
          ,
          <addr-line>José Echegaray 8, 28230 Las Rozas, Madrid</addr-line>
          ,
          <country country="ES">Spain</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>S3Lab, Deustotech, Universidad de Deusto</institution>
          ,
          <addr-line>Avda. Universidades 24, 48007, Bilbao, Bizkaia</addr-line>
          ,
          <country country="ES">SPAIN</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Due to their huge popularity, Social Networks are increasingly being used as malware, spam and phishing propagation applications. Moreover, Social Networks are being widely recognized as a source of private (either corporate or personal) information leaks. Within the project Segur@, Optenet has developed a number of prototypes that deal with these problems, based on several techniques that share text mining as the underlying approach. These prototypes include a malware detection system based on Information Retrieval techniques, a compression-based spam filter, and a Data Leak Prevention system that makes use of Named Entity Recognition techniques.</p>
      </abstract>
      <kwd-group>
        <kwd>Text Mining</kwd>
        <kwd>Information Retrieval</kwd>
        <kwd>Named Entity Recognition</kwd>
        <kwd>Malware</kwd>
        <kwd>Spam</kwd>
        <kwd>Data Leak Prevention</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>As Social Networks (SNs) gain more and more popularity, they are becoming a major
source and propagation vector for malware, spam, phishing and private information
leaks. It is imperative to control these threats in order to make SNs as useful as they
promise to be. The project Segur@ has helped Optenet to frame a number of research
developments addressing these problems, and sharing Text Mining as the base of
them. These developments, along with the prototypes developed, are described in the
next sections.
Malware (trojans, spyware, viruses, etc.) is plaguing SNs, mostly in the form of
obfuscated variants of an original malicious software that adapts to the current user
machine specifics. In order to detect these new variants and even new malware
families (i.e., completely new malicious software), already known software (both
malicious and legitimate) can be represented in terms of operational codes (assembler
code instructions), and new software similarity to these known executables can be
computed. We have designed an approach in which:
1. Software is represented as sequences of operational codes (opcodes) of several
lengths, after selecting the most relevant ones according to its Mutual
Information with respect to being malware or legitimate software. Opcode
ngrams are terms in a Vector Space Model, weighted using a weighted term
frequency formula.
2. New software instances similarity with respect to malware or legitimate
software is computed using the cosine similarity between the vectors that
represent all software instances. A new instance is considered malware or
legitimate depending of its similarity to both kinds of instances. This way,
variants of currently known malware are detected.
3. A Machine Learning approach is used to derive a classifier able to detect new
malware instances that share properties with existing code samples. Several
Machine Learning approaches have been tested, including Support Vector
Machines (SVMs), Decision Trees, or k Nearest Neighbour classifiers.</p>
      <p>Overall, a Text Classification approach is used, but on assembler code instead of
text. The experiments carried out for these approaches are very encouraging, as the
results obtained on a test collection of over 26,000 samples of malware and legitimate
software show that:
1. It is quite easy to find a discriminative threshold between malware and
legitimate software in the detection of variants of known malware instances
when using opcode bigrams, leading to high detection rates and no false
positives.
2. For instance, SVMs and Decision Trees (Random Forests) over one and
bigrams lead to detection rates over 95% with false positives below 5% by
cross-validation on the test collection.</p>
      <p>A prototype has been developed in order to demonstrate the analysis process on a
Microsoft Windows Systems. The prototype allows loading a software instance,
disassembling it, and comparing it to the current database of software samples.</p>
    </sec>
    <sec id="sec-2">
      <title>3 Compression-based Spam Detection</title>
      <p>SNs are being used as a prominent method for disseminating spam and phishing
attacks, what represents a major threat for SNs users. A wide range of learning based
systems and approaches for spam detection (Bayesian filters) have been developed in
recent years. Despite of their theoretical effectiveness, most of them are very sensitive
to the tokenization process, in which messages are represented as sequences of
character strings intended to capture either message semantics or spam properties.</p>
      <p>State of the art on Bayesian filters as demonstrated in the TREC Spam Filtering
Tracks [1] shows that compression based learning, often applied to Text
Categorization (see e.g. [3]), does not face the same problem. The reason for this is
that messages are not explicitly represented in terms of strings resembling works, but
in terms of bit sequences hardly hacked by spammers in order to overcome the filter.</p>
      <p>We have developed a compression based spam filter that includes a number of text
compression approaches [1], namely Dynamic Markov Chains, Prediction by Partial
Matching, and Lempel-Ziv variants as GZip. The compression filter is able to classify
email messages (as those received through SNs with updates and status summaries) as
spam or legitimate, and it has been implemented resembling Spamassassin command
line operations, in order to simplify its integration with Mail User Agents like
Thunderbird or KMail over Linux.</p>
    </sec>
    <sec id="sec-3">
      <title>4 Privacy Preservation through Named Entity Recognition</title>
      <p>Perhaps the most dangerous current security threat for SN users is private information
leaks. From phishing attacks to unnoticed users mistakes, leaks are getting more and
more common, and Data Leak Prevention (DLP) tools must be made more and more
effective in order to preserve user and corporate privacy.</p>
      <p>Most DLP tools are very effective when protecting already known private
information. However, a great amount of private information is not recognized until it
has been disclosed to unknown users or competition enterprises. In order to detect
unknown private information leaks, we have designed a system based on:
1. Text Classification techniques that are used to process any text disclosed to a
SN in search for Named Entities like person, organization or product names.
Language Independent techniques (e.g., n-gram features) are used to detect
unknown patterns (entities), using the package Freeling [2] for testing our
approach on Spanish and English text instances.
2. A user-learning loop similar to that of personal firewalls. The user is alerted
when a new entity is detected, allowing them to classify as private or public,
and to block or allow text including the detected entity to be posted to the net.
Subsequent occurrences of the entity are blocked or allowed by using a
white/black list. In consequence, the software gradually adapts its performance
to the user/organization behaviour.</p>
      <p>The Named Entity Recognition module of our prototype has been tested on a
sample of entities and text postings collected over a year on the micro-blogging
Twitter SN, covering a range of popular brand and product searches according to
Google Insights statistics. Results of our experiments show accuracy over 90% in
English and Spanish, and very low false negative rates. Moreover, most false negative
text instances (which correspond to undetected entities which may lead to private
information leaks) are detected in other instances, and in consequence, the user is
alerted regarding them anyway.</p>
      <p>The prototype configuration screen is presented in Fig. 1, showing the whole range
of privacy enabling data fields (from credit card numbers to passwords, etc.). Named
Entities detected are stored as user-defined fields (Other Keys section). The prototype
is available for Microsoft Windows.</p>
    </sec>
    <sec id="sec-4">
      <title>5 Future Work</title>
      <p>Current prototypes future work plans include improving both the text analysis
techniques involved, and getting the user interface getting integrated into the Optenet
Security Suite for PC, enabling current and future Optenet users to benefit from these
advances.</p>
      <p>Acknowledgments. The prototypes described in this paper have been developed
within the Project Segur@ (CENIT-2007 2004).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <surname>Cormack</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          :
          <article-title>TREC 2007 Spam Track Overview</article-title>
          . In Voorhees E.M.,
          <string-name>
            <surname>Buckland</surname>
            ,
            <given-names>L.P.</given-names>
          </string-name>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          (eds):
          <source>NIST Special Publication 500-274: The Sixteenth Text REtrieval Conference Proceedings (TREC</source>
          <year>2007</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <surname>Teahan</surname>
            ,
            <given-names>W.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Harper</surname>
            ,
            <given-names>D. J.:</given-names>
          </string-name>
          <article-title>Using compression based language models for text categorization</article-title>
          . In Callan, J.,
          <string-name>
            <surname>Croft</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lafferty</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          , (eds):
          <source>Workshop on Language Modelling and Information Retrieval</source>
          , pages
          <fpage>83</fpage>
          --
          <lpage>88</lpage>
          , Carnegie Mellon University,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>