This needs a bit of heuristics as real-world pass files don't always follow the specification for this.