OCP/File virus filtering example

This is a possible OCP message flow using a File profile.
Note that this is preliminary, just a draft, no specs about a File profile have been discussed yet

The example has two transactions. The first refers to a virus free file, the second includes a test virus.

OPES processor Callout server
CS;
CS;
SGC 10 ({"23:webwasher.com/virus-filter"});
 
NO ({"29:http://iana.org/opes/ocp/file"})
SG: 10
;
NR {"29:http://iana.org/opes/ocp/file"}
SG: 10
;
TS 91 10;
 
AMS 91;
 
DUM 91 0
File-Size: 2542
Original-Name: "8:test.exe"
18:/opt/A23453434.tmp
;
 
AME 91;
AMS 91;
DUY 91 0 2542;
AME 91;
TE 91;
TE 91;
TS 92 10;
 
AMS 92;
 
DUM 92 0
File-Size: 68
Original-Name: "9:eicar.com"
18:/opt/B23452323.tmp
;
 
AME 92;
AMS 92;
DUM 92 0
Content-Type: "10:text/plain"
Virus-Name: "16:Eicar-Test-Virus"
Action: Qurantaine
60:This file contains the Eicar test virus. It will be blocked.
;
AME 92;
TE 92;
TE 92;

Back to Martin's OPES page