<!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>Detecting Phishing Websites by using Neural Network Models</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Dominika Zurawska</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Faculty of Applied Mathematics, Silesian University of Technology</institution>
          ,
          <addr-line>Kaszubska 23, 44100 Gliwice</addr-line>
          ,
          <country country="PL">POLAND</country>
        </aff>
      </contrib-group>
      <fpage>45</fpage>
      <lpage>50</lpage>
      <abstract>
        <p>In the article is presented the problem of classifying domains that may be phishing by using parameters and information extracted from sample pages. Presented tests are using various ML classifications models which we used from open libraries in selected programming language. Presented methods are implemented in simple way just to test selected models and compare them in standard metrics. To my tests i have selected neural networks, decision tree, svm, logistic regression and random forest. I have tested their efectiveness to select the best option for phishing.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;neural network</kwd>
        <kwd>classification</kwd>
        <kwd>phishing</kwd>
        <kwd>security domain</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>important in the classification of phishing.
An anchor is an element defined by the &lt;a&gt; tag. This
feature is treated exactly as “Request URL”. However, for
this feature we examine:
1. If the &lt;a&gt; tags and the website have diferent
domain names. This is similar to request URL
feature.
2. If the anchor does not link to any webpage, e.g.:
a) &lt;a href=“#”&gt;
b) &lt;a href=“#content”&gt;
c) &lt;a href=“#skip”&gt;
d) &lt;a href=“JavaScript::void(0)”&gt;</p>
      <sec id="sec-1-1">
        <title>Rule:</title>
        <p>% of URL Of Anchor &lt;31% → Legitimate
% of URL Of Anchor ≥ 31% And ⩽ 67% → Suspicious
Otherwise→ Phishing</p>
        <sec id="sec-1-1-1">
          <title>3.3. Links in tags</title>
          <p>Given that our investigation covers all angles likely to
be used in the webpage source code, we find that it is
common for legitimate websites to use &lt;Meta&gt; tags to
ofer metadata about the HTML document; &lt;Script&gt; tags
to create a client side script; and &lt;Link&gt; tags to retrieve
other web resources.</p>
        </sec>
        <sec id="sec-1-1-2">
          <title>3.6. Links pointing to page</title>
          <p>The number of links pointing to the webpage indicates
its legitimacy level, even if some links are of the same
domain. In our datasets and due to its short life span,
we find that 98% of phishing dataset items have no links
pointing to them. On the other hand, legitimate websites
have at least 2 external links pointing to them.
Of Link Pointing to The Webpage = 0 →
Phishing
Of Link Pointing to The Webpage &gt; 0 and &lt;= 2
→Suspicious
Otherwise → Legitimate</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>4. Classifications Algorithms</title>
      <p>In this work some selected models were tested.
Presented results are from open libraries that
were available for student tests in online services.
Data for the experiments were collected from
https://archive.ics.uci.edu/ml/datasets.php.</p>
      <sec id="sec-2-1">
        <title>4.1. Logistic regression</title>
      </sec>
      <sec id="sec-2-2">
        <title>3.4. Prefix Sufix</title>
        <p>Logistic regression developing the concept of a
perThe dash symbol is rarely used in legitimate URLs. ceptron using a nonlinear activation function and
Phishers tend to add prefixes or sufixes separated by updating the weights with the logistic regression
(-) to the domain name so that users feel that they cost function,. In experiments i have used model
are dealing with a legitimate webpage. For example from
https://machinelearningmastery.com/logistichttp://www.Confirme-paypal.com. regressionfor- machine-learning/. This model can
be extended with regularization to prevent too high
Rule: variance. Using the sigmoid activation function, model
Domain Name Part Includes (-) Symbol → Phishing returns the probability of class, in our case we use the
Otherwise → Legitimate tanh activation function because it returns values from
-1 to 1 and this is exactly how it is presented in our
dataset.</p>
      </sec>
      <sec id="sec-2-3">
        <title>3.5. Web trafic</title>
        <p>This feature measures the popularity of the website by
determining the number of visitors and the number of
pages they visit. However, since phishing websites live
for a short period of time, they may not be recognized
by the Alexa database. Furthermore, if the domain has
no trafic or is not recognized by the Alexa database, it
is classified as “Phishing”. Otherwise, it is classified as
“Suspicious”.</p>
        <sec id="sec-2-3-1">
          <title>Rule:</title>
          <p>Website Rank&lt;100,000 → Legitimate
Website Rank&gt;100,000 →Suspicious
Otherwise → Phish
4.2. SVM
SVM is very similar to logistic regression, but it uses a
diferent method of determining the decision boundary,
it consists in finding such a boundary whose distance to,
samples of diferent classes, is as large as possible.
Applied model is from https://paperswithcode.
com/method/svm. This algorithm also has the ability to correct
variations with the help of the C parameter (expanded
regularization) as well as solving problems with classes, linearly
non-separable with the help of kernel functions, by
increasing the dimensions and finding a hyperplane.</p>
        </sec>
      </sec>
      <sec id="sec-2-4">
        <title>4.3. Decision tree</title>
        <p>The next classifier is the decision tree [ 13], its activity is
about creating a decision boundary by asking questions
45–50</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>6. Results of tests</title>
      <p>about the data, answering them assigns the data to the
next branches of the tree (there may be a lot of them, but
in practice, it is usually divided into two sub-trees). In
theory, such a tree can distribute data until there is only
one class in each leaf, which means that the classifier will
be over-trained and will not cope with the new data to
prevent such a high variance when pruning the tree at a
given height. In our case, the tree will work great because
the features in our data set are binary ages and represent
answers to the questions about domain metadata. The
model of this section is from https://www.geeksforgeeks.
org/decision-tree-implementation-python/.</p>
      <sec id="sec-3-1">
        <title>4.4. Random forest</title>
        <p>Random forest is the use of many decision trees and
averaging their results, thanks to this solution we can
use very tall trees and thus with a large variance (too
high accuracy), because after averaging with other trees
it ceases to be a problem and the model is eficient and
accurate</p>
      </sec>
      <sec id="sec-3-2">
        <title>4.5. Neural network</title>
        <p>The multi-layer neural network, a model of a neural net- Our own implementation of logistic regression obtained
work with a layer of input neurons with an amount equal a decent result of 0.9, while the error matrix shows that
to the number of features of our data, layers of neurons the model has a tendency to falsely classify websites as
which in our case is 50 and output neurons with the phishing: Accuracy: 0.9, Precision: 0.87, Recall: 0.974, F1:
number of our classes 0.919.</p>
        <p>The SVM model with complementary variable and
regularization be scored very high: Accuracy: 0.97, Precision:
5. Accuracy measure parameter 0.97, Recall: 0.99, F1: 0.98.</p>
        <p>Tree decision tree obtained very good results at a depth
After creating all classifications, it turns out that all mod- of about 15, increasing by higher values will not improve
els have proven themselves. However, they had diferent much, and reaching very high values caused that the
operating times and unfortunately for some real-time accuracy was decreasing - it resulted from the previously
learning is not possible. But, for example, thanks to a de- discussed too large variance: Accuracy: 0.964, Precision:
cision tree, we can visualize the decision-making process 0.966, Recall: 0.969, F1: 0.968.
and check based on the features it is made. Presentation of an example tree with a depth of 3 so</p>
        <p>Formulas for determining parameters for model that it is relatively clear, such a tree also achieves a
satisevaluation: factory result of about 93</p>
        <p>The Random Forest, achieves practically the same
result as properly trimmed random tree: Accuracy: 0.965,
Precision: 0.966, Recall: 0.969, F1: 0.968.</p>
        <p>The multi-layer neural network obtained a very high
result as one might expect: Accuracy: 0.975, Precision:
0.971, Recall: 0.984, F1: 0.977.</p>
        <p>TP - true positive (the phishing sample is
classiifed as phishing)
FN - false negative (the phishing sample is classified as
non-phishing)
FP - false positive (the non-phishing sample is classified
as phishing)
TN - true negative (the non-phishing sample is classified
as non-phishing)
7. Conclusion
  =
 =</p>
        <p>+</p>
        <p>
          +  
(
          <xref ref-type="bibr" rid="ref1">1</xref>
          )
(
          <xref ref-type="bibr" rid="ref2">2</xref>
          )
        </p>
        <p>Most classifiers work well in predicting whether a given
domain is a phishing attack, the efectiveness of
prediction is at a very, level, and thanks to algorithms such as
the decision tree, we are able to extract from the model
very similar results, making the choice appropriate to
the features that are most important to recognize this our needs should be based on the assessment of eficiency,
type of attack, thanks to which you can defend yourself lfexibility for learning with new data and transparency
more efectively . And the learned model can be used of operation.
in user protection programs. As the models obtained</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>G.</given-names>
            <surname>Cardarilli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Nunzio</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Fazzolari</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Giardino</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Matta</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Patetta</surname>
          </string-name>
          , M. Re, S. Spanò,
          <article-title>Approximated computing for low power neural networks, Telkomnika (Telecommunication Computing Electronics</article-title>
          and Control)
          <volume>17</volume>
          (
          <year>2019</year>
          )
          <fpage>1236</fpage>
          -
          <lpage>1241</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>G.</given-names>
            <surname>Capizzi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G. Lo</given-names>
            <surname>Sciuto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Napoli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Woźniak</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Susi</surname>
          </string-name>
          ,
          <article-title>A spiking neural network-based long-term prediction system for biogas production</article-title>
          ,
          <source>Neural Networks</source>
          <volume>129</volume>
          (
          <year>2020</year>
          )
          <fpage>271</fpage>
          -
          <lpage>279</lpage>
          . doi:
          <volume>10</volume>
          .1016/j. neunet.
          <year>2020</year>
          .
          <volume>06</volume>
          .001.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>G.</given-names>
            <surname>Capizzi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G. Lo</given-names>
            <surname>Sciuto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Napoli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Tramontana</surname>
          </string-name>
          ,
          <article-title>A multithread nested neural network architecture to model surface plasmon polaritons propagation</article-title>
          ,
          <source>Micromachines</source>
          <volume>7</volume>
          (
          <year>2016</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>G.</given-names>
            <surname>Capizzi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Napoli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Paternò</surname>
          </string-name>
          ,
          <article-title>An innovative hybrid neuro-wavelet method for reconstruction of missing data in astronomical photometric surveys</article-title>
          ,
          <source>Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) 7267 LNAI</source>
          (
          <year>2012</year>
          )
          <fpage>21</fpage>
          -
          <lpage>29</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>R.</given-names>
            <surname>Brociek</surname>
          </string-name>
          ,
          <string-name>
            <surname>G. De Magistris</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <string-name>
            <surname>Cardia</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <string-name>
            <surname>Coppa</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Russo</surname>
          </string-name>
          ,
          <article-title>Contagion prevention of covid-19 by means of touch detection for retail stores</article-title>
          , volume
          <volume>3092</volume>
          ,
          <year>2021</year>
          , p.
          <fpage>89</fpage>
          -
          <lpage>94</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>D.</given-names>
            <surname>Połap</surname>
          </string-name>
          , M. Woźniak,
          <article-title>Meta-heuristic as manager in federated learning approaches for image processing purposes</article-title>
          ,
          <source>Applied Soft Computing</source>
          <volume>113</volume>
          (
          <year>2021</year>
          )
          <fpage>107872</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>R.</given-names>
            <surname>Avanzato</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Beritelli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Russo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Russo</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.</surname>
          </string-name>
          <article-title>Vaccaro, Yolov3-based mask and face recognition algorithm for individual protection applications</article-title>
          , volume
          <volume>2768</volume>
          ,
          <year>2020</year>
          , p.
          <fpage>41</fpage>
          -
          <lpage>45</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>M.</given-names>
            <surname>Wozniak</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Silka</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Wieczorek</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Alrashoud</surname>
          </string-name>
          ,
          <article-title>Recurrent neural network model for iot and networking malware threat detection</article-title>
          ,
          <source>IEEE Transactions on Industrial Informatics</source>
          <volume>17</volume>
          (
          <year>2021</year>
          )
          <fpage>5583</fpage>
          -
          <lpage>5594</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>X.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Song</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Woźniak</surname>
          </string-name>
          , S. Liu,
          <article-title>Selfattention negative feedback network for real-time image super-resolution</article-title>
          ,
          <source>Journal of King</source>
          Saud University-Computer and Information Sciences (
          <year>2021</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>M.</given-names>
            <surname>Woźniak</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Wieczorek</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Siłka</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Połap</surname>
          </string-name>
          ,
          <article-title>Body pose prediction based on motion sensor data and recurrent neural network</article-title>
          ,
          <source>IEEE Transactions on Industrial Informatics</source>
          <volume>17</volume>
          (
          <year>2020</year>
          )
          <fpage>2101</fpage>
          -
          <lpage>2111</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>M.</given-names>
            <surname>Woźniak</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Zielonka</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Sikora</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. J.</given-names>
            <surname>Piran</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Alamri</surname>
          </string-name>
          ,
          <article-title>6g-enabled iot home environment control using fuzzy rules</article-title>
          ,
          <source>IEEE Internet of Things Journal</source>
          <volume>8</volume>
          (
          <year>2020</year>
          )
          <fpage>5442</fpage>
          -
          <lpage>5452</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>M.</given-names>
            <surname>Silic</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Back</surname>
          </string-name>
          ,
          <article-title>The dark side of social networking sites: Understanding phishing risks</article-title>
          ,
          <source>Computers in Human Behavior</source>
          <volume>60</volume>
          (
          <year>2016</year>
          )
          <fpage>35</fpage>
          -
          <lpage>43</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>S.</given-names>
            <surname>Russo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Illari</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Avanzato</surname>
          </string-name>
          ,
          <string-name>
            <surname>C.</surname>
          </string-name>
          <article-title>Napoli, Reducing the psychological burden of isolated oncological patients by means of decision trees</article-title>
          , volume
          <volume>2768</volume>
          ,
          <year>2020</year>
          , p.
          <fpage>46</fpage>
          -
          <lpage>53</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>