Changes between Version 12 and Version 13 of BotnetExample


Ignore:
Timestamp:
Nov 5, 2010 4:00:22 PM (14 years ago)
Author:
sunshine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BotnetExample

    v12 v13  
    99=== Worm spread metadescription ===
    1010
     11'''define Worm:'''
    1112
    12  * '''Logical topology:'''
     13 '''Logical topology:'''
    1314 
    1415  '''Objects:'''
     
    2930
    3031   
    31  * '''Timeline of events: '''
     32 '''Timeline of events: '''
    3233
    3334   '''Definitions:'''
     
    4445
    4546
    46  * '''Invariants:''' No additional ones are needed here.
     47 '''Invariants:''' No additional ones are needed here.
    4748
    4849=== P2P w leader and C&C traffic metadescription ===
    4950
    50 * '''Logical topology:'''
     51'''define P2P:'''
     52
     53 '''Logical topology:'''
    5154
    5255  '''Objects:'''
     
    6972
    7073
    71  * '''Timeline of events: '''
     74 '''Timeline of events: '''
    7275
    7376  '''Definitions:'''
     77 
    7478    PEERREQUEST extends REQUEST
    7579
     
    103107
    104108
    105  * '''Invariants:''' No additional ones are needed here.
     109 '''Invariants:''' No additional ones are needed here.
    106110
    107111=== Experiment design ===
     
    109113Now I'm a user who wants to design my experiment. I need to combine two metadescriptions and somehow tie them down to generator choices. To combine I need to specify how outputs of worm metadescription match inputs of P2P metadescription. I'll do something like this:
    110114
    111   Worm w, P2P p2p
     115 '''define Botnet: import Worm w, P2P p2p'''
    112116 
    113     p2p.Peer := w.Infected
     117 '''Logical topology:'''
    114118
    115     w | | p2p
     119 
     120  '''Objects:'''
     121
     122    each p2p.Peer p and each w.Infected i
     123
     124        p := i
     125
     126  '''Cardinality:'''
     127
     128  '''Relationships:'''
     129   
     130 '''Timeline of events: '''
     131
     132   '''Definitions:'''     
     133
     134   '''Timeline:'''
     135 
     136     timeline(w) | | timeline(p2p)
     137     
     138
     139 '''Invariants:''' No additional ones are needed here.
     140   
     141
    116142
    117143