%0 Journal Article %F hmgg13 %A Hélouet, L. %A Marchand, H. %A Genest, B. %A Gazagnaire, T. %T Diagnosis from Scenarios, and applications %J Discrete Event Dynamic Systems : Theory and Applications %X Diagnosis of a system consists in providing explanations to a supervisor from a partial observation of the system and a model of possible executions. This paper proposes a partial order diagnosis algorithm that recovers sets of scenarios which correspond to a given observation. Systems are modeled using High-level Message Sequence Charts (HMSCs), and the diagnosis is given as a new HMSC, which behaviors are all explanations of the partial observation. The main difficulty is that some actions of the monitored system are unobservable but may still induce some causal ordering among observed events. We first give an offline centralized diagnosis algorithm, then we discuss a decentralized version of this algorithm. We then give an online diagnosis algorithm, and define syntactic criteria under which the memory used can be bounded. This allows us to give a complete diagnosis framework for infinite state systems, with a strong emphasis on concurrency and causal ordering in behaviors. The last contribution of the paper is an application of diagnosis techniques to a security problem called anomaly detection. Anomaly detection consists in comparing what occurs in the system with usual/expected behaviors, and raising an alarm when some unusual behavior (meaning a potential attack) occurs %U http://hal.inria.fr/hal-00879441/PDF/JDEDS-Unusual.pdf %U http://dx.doi.org/10.1007/s10626-013-0158-2 %D 2013