Skip to content

Commit

Permalink
improve phishing-1
Browse files Browse the repository at this point in the history
  • Loading branch information
gwagner57 committed Apr 3, 2024
1 parent b3159f0 commit 0d97ac1
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 16 deletions.
4 changes: 2 additions & 2 deletions JavaScript/core4/phishing-1/PhishingTarget.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class PhishingTarget extends aGENT {
case "LureMessage":
// (1) assess sender address and message subject
const headerCredibility = this.getMessageHeaderCredibility( message);
if (headerCredibility*this.susceptibility > 0.5) { // (2) read and assess message body
if (headerCredibility*this.susceptibility > 0.2) { // (2) read and assess message body
const bodyCredibility = this.getMessageBodyCredibility( message.body);
if (bodyCredibility*this.susceptibility > 0.5) { // (3) go to hook webpage
if (bodyCredibility*this.susceptibility > 0.2) { // (3) go to hook webpage
this.perform( new VisitHookPage({ performer: this, hookPage: message.hookPage,
impersonatedAgent: message.impersonatedAgent}));
}
Expand Down
2 changes: 1 addition & 1 deletion JavaScript/core4/phishing-1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div><small>An <em><a href="https://gwagner57.github.io/oes/">Object Event Simulation (OES)</a></em> example model.
You can download and inspect its code from the <a href="https://github.com/gwagner57/oes/tree/master/JavaScript/core4/phishing-1">OES
GitHub repo</a>.</small></div>
<h1>Phishing Baseline Model <a href="description.html">Read more...</a></h1>
<h1>Baseline Phishing Model <a href="description.html">Read more...</a></h1>
<p id="copyright">© 2024 (<a href="https://creativecommons.org/licenses/by/4.0/">CC BY</a>) Gerd Wagner,
Brandenburg University of Technology, Germany.</p>
<div id="modelDescription">
Expand Down
11 changes: 6 additions & 5 deletions JavaScript/core4/phishing-1/simulation.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ sim.scenario.setupInitialState = function(){
Define Output Statistics Variables
********************************************************/
sim.model.setupStatistics = function () {};
/*
sim.model.timeSeries = {
"retailer inventory": {objectId:1, attribute:"stockQuantity"},
"distributor inventory": {objectId:2, attribute:"stockQuantity"},
"wholesaler inventory": {objectId:3, attribute:"stockQuantity"},
"phisher assets": {objectId:1, attribute:"assetsTUSD"},
"assets of target 1": {objectId:1001, attribute:"assetsTUSD"},
"assets of target 2": {objectId:1002, attribute:"assetsTUSD"},
"assets of target 3": {objectId:1003, attribute:"assetsTUSD"},
"assets of target 4": {objectId:1004, attribute:"assetsTUSD"},
"assets of target 5": {objectId:1005, attribute:"assetsTUSD"},
}
*/
sim.model.computeFinalStatistics = function () {
// create a table showing agent assets
const tableDef = {name:"Assets after phishing", attributes:["assetsTUSD"]};
Expand Down
4 changes: 2 additions & 2 deletions docs/phishing-1/PhishingTarget.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class PhishingTarget extends aGENT {
case "LureMessage":
// (1) assess sender address and message subject
const headerCredibility = this.getMessageHeaderCredibility( message);
if (headerCredibility*this.susceptibility > 0.5) { // (2) read and assess message body
if (headerCredibility*this.susceptibility > 0.2) { // (2) read and assess message body
const bodyCredibility = this.getMessageBodyCredibility( message.body);
if (bodyCredibility*this.susceptibility > 0.5) { // (3) go to hook webpage
if (bodyCredibility*this.susceptibility > 0.2) { // (3) go to hook webpage
this.perform( new VisitHookPage({ performer: this, hookPage: message.hookPage,
impersonatedAgent: message.impersonatedAgent}));
}
Expand Down
2 changes: 1 addition & 1 deletion docs/phishing-1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div><small>An <em><a href="https://gwagner57.github.io/oes/">Object Event Simulation (OES)</a></em> example model.
You can download and inspect its code from the <a href="https://github.com/gwagner57/oes/tree/master/JavaScript/core4/phishing-1">OES
GitHub repo</a>.</small></div>
<h1>Phishing Baseline Model <a href="description.html">Read more...</a></h1>
<h1>Baseline Phishing Model <a href="description.html">Read more...</a></h1>
<p id="copyright">© 2024 (<a href="https://creativecommons.org/licenses/by/4.0/">CC BY</a>) Gerd Wagner,
Brandenburg University of Technology, Germany.</p>
<div id="modelDescription">
Expand Down
11 changes: 6 additions & 5 deletions docs/phishing-1/simulation.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ sim.scenario.setupInitialState = function(){
Define Output Statistics Variables
********************************************************/
sim.model.setupStatistics = function () {};
/*
sim.model.timeSeries = {
"retailer inventory": {objectId:1, attribute:"stockQuantity"},
"distributor inventory": {objectId:2, attribute:"stockQuantity"},
"wholesaler inventory": {objectId:3, attribute:"stockQuantity"},
"phisher assets": {objectId:1, attribute:"assetsTUSD"},
"assets of target 1": {objectId:1001, attribute:"assetsTUSD"},
"assets of target 2": {objectId:1002, attribute:"assetsTUSD"},
"assets of target 3": {objectId:1003, attribute:"assetsTUSD"},
"assets of target 4": {objectId:1004, attribute:"assetsTUSD"},
"assets of target 5": {objectId:1005, attribute:"assetsTUSD"},
}
*/
sim.model.computeFinalStatistics = function () {
// create a table showing agent assets
const tableDef = {name:"Assets after phishing", attributes:["assetsTUSD"]};
Expand Down

0 comments on commit 0d97ac1

Please sign in to comment.