Erik, I'm a qualified hypnotherapist and I know from first hand what panic attacks are all about. It's one of the main reasons I trained and qualified.
I agree with some of the posts in terms of relaxation and meditation.
I would also add this:
We are all born with 2 fears, the fear of falling and the fear of loud or sudden noise.
Everything else that we now fear (ar whatever point in your life you are) has been LEARNT up to this point.
Our subconscious not only controls our autonomic processes like breathing for example (you don't have to consciously think about breathing!), it also looks after our 'survival'.
Every second, your subconscious evaluates millions of inputs (sounds, smells, visual etc. etc.) against the beliefs it already holds.
If it detects something that it believes is a 'danger' to self, it will 'tell' you about via physical symptoms, the fight or flight mechanism will kick-in.
The mouth may go dry, the bowels start to move, the geart rate picks up, you are far more alert: all of these things, in ancient times, would have been readying the body for a physical response to a threat against self.
The subconscious does not distinguish and does not know that you consciously know that you are 'safe'. It doesn't care.
It just wants to keep you 'alive'; and, afterall, everything it has done so far HAS kept you alive; you are still here after all!!
The subconscious will only change a belief if something comes along that is more valid or something changes that belief through experience.
Now, you may have no conscious idea why you suddenly have a panic attack. There may be no reason that you know of. However, there will be something that your subconscious has detected as a threat; this could be anything, and it is probably likely that you are not consciously aware of it.
The reaction we normally have to these episodes is actually what keeps them going.
The subconscious detects and send physical symptoms; the conscious person removes themselves from that situation and the symptoms decline.
The subconscious has won again!
The language of the subconscious is imagination and this wins hands down over willpower (conscious) EVERY time.
Now, to a solution.
There are various ways, and the efficacy depends on the specific circumstances e.g. random panic attacks or specific situations.
CBT is an option for some.
EFT is another option for others.
General meditation and relaxation techniques can help.
As a hypnothepist my obvious preference is Hypnoanalysis to get to the route cause. This can be very effective in the hands of a properly trained therapist. It is not necessarily the answer for everyone. As I have said, it depends on the individual circumstances and is dependent on the unique therapist/client relationship.
All I can advise is that if you want to go down the Hypnotherapy route, please make sure they are trained in Hypnoanalysis and that they are registered with the Government CNHC organization that regulates complimentary therapies, hypnotherapy being one of them.
I hope this has helped.
Good luck.