ProHOC is a framework for detecting and classifying out-of-distribution (OOD) samples in a class hierarchy.The approach leverages a probabilistic model that uses networks trained for in-distribution (ID) classification at multiple hierarchy depths.Experiments conducted on three datasets with predefined class hierarchies demonstrate the effectiveness of the method.The code for ProHOC is available at https://github.com/walline/prohoc.