Unfortunately, the TL;DR for the below is mostly YMMV, because I just don't have enough info about you or the jobs, but perhaps I can add some perspective.
I don't really know very much about security at all. I have some knowledge of encryption algorithms, and the related maths, but pretty much nothing about what security people actually do - I do get the impression though that it ranges from installing software to penetration testing (which would involve trying known exploits, and possibly developing new ones). Depending on what specifically, your job entails, this can range from fascinating to boring AF).
As for the development work, and bank vs. dev house, it all really depends on what you enjoy doing, how that aligns with pay, and what the local department's dev culture is like. I would look at what you've found that you enjoy doing, and see if doing more of that can align with any of these opportunities, and similarly, how much of what you hate doing is in these new jobs. I work in finance now, and far prefer the dev culture to that of technology firms, but I know that this isn't always the case.
Perhaps one more general piece of advice - something that has served me well, is to do whatever is harder. The harder the work, the more challenging and gratifying it tends to be, and as an additional bonus, it ultimately means that you have less competition, and can demand higher pay too.
I don't really know very much about security at all. I have some knowledge of encryption algorithms, and the related maths, but pretty much nothing about what security people actually do - I do get the impression though that it ranges from installing software to penetration testing (which would involve trying known exploits, and possibly developing new ones). Depending on what specifically, your job entails, this can range from fascinating to boring AF).
As for the development work, and bank vs. dev house, it all really depends on what you enjoy doing, how that aligns with pay, and what the local department's dev culture is like. I would look at what you've found that you enjoy doing, and see if doing more of that can align with any of these opportunities, and similarly, how much of what you hate doing is in these new jobs. I work in finance now, and far prefer the dev culture to that of technology firms, but I know that this isn't always the case.
Perhaps one more general piece of advice - something that has served me well, is to do whatever is harder. The harder the work, the more challenging and gratifying it tends to be, and as an additional bonus, it ultimately means that you have less competition, and can demand higher pay too.
