7. A computer implemented method comprising: analyzing a formal model of a graphical user interface (GUI) of a system, the formal model comprised of a user action sequence, an execution context, and system state; generating a map of one or more expected visual invariants corresponding to one or more defined program invariants associated with at least one of an address bar or a status bar of the GUI; executing a search by applying event sequences on a portion of logic of the GUI associated with at least one of the one or more defined program invariants to identify an occurrence of a violation of the map associated with at least one of the address bar or the status bar corresponding to the user action sequence, the execution context and the system state; constructing a visual spoofing scenario based in part on one or more of the event sequences associated with the violation; and outputting the spoofing scenario.
7. A computer implemented method comprising: analyzing a formal model of a graphical user interface (GUI) of a system, the formal model comprised of a user action sequence, an execution context, and system state; generating a map of one or more expected visual invariants corresponding to one or more defined program invariants associated with at least one of an address bar or a status bar of the GUI; executing a search by applying event sequences on a portion of logic of the GUI associated with at least one of the one or more defined program invariants to identify an occurrence of a violation of the map associated with at least one of the address bar or the status bar corresponding to the user action sequence, the execution context and the system state; constructing a visual spoofing scenario based in part on one or more of the event sequences associated with the violation; and outputting the spoofing scenario. 9. The method of claim 7 , wherein the system state includes an address bar, a status bar, a primary frame, a set of non-primary frames, a view structure, pending markups and current markups represented as a multi-set of attributes.