Generic procedures to detect attacks by programs in data-chains hidden