ABXES and Attack detection

ABXES and attack detection completed.