Tsumego From Games 48

From one of my games. I have no doubt that what happened was not best play from both sides. However, the position looks interesting, and I'd like to know what should have happened.

White looks vulnerable

12345678
What I tried

My questions are:

  • Is invasion possible?

  • Is 7 right?

  • Where should 9 be?

I tried 9 between 1 and 5, which led to a ko at for seki, but lots of things seem to lead to ko at for life.

See BQM256.